summaryrefslogtreecommitdiff
path: root/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/crankshaft/mips/lithium-codegen-mips.h')
-rw-r--r--deps/v8/src/crankshaft/mips/lithium-codegen-mips.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h b/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h
index bb09abc1df..28ca01cd71 100644
--- a/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h
+++ b/deps/v8/src/crankshaft/mips/lithium-codegen-mips.h
@@ -357,24 +357,9 @@ class LCodeGen: public LCodeGenBase {
class PushSafepointRegistersScope final BASE_EMBEDDED {
public:
- explicit PushSafepointRegistersScope(LCodeGen* codegen)
- : codegen_(codegen) {
- DCHECK(codegen_->info()->is_calling());
- DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
- codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
-
- StoreRegistersStateStub stub(codegen_->isolate());
- codegen_->masm_->push(ra);
- codegen_->masm_->CallStub(&stub);
- }
-
- ~PushSafepointRegistersScope() {
- DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters);
- RestoreRegistersStateStub stub(codegen_->isolate());
- codegen_->masm_->push(ra);
- codegen_->masm_->CallStub(&stub);
- codegen_->expected_safepoint_kind_ = Safepoint::kSimple;
- }
+ explicit PushSafepointRegistersScope(LCodeGen* codegen);
+
+ ~PushSafepointRegistersScope();
private:
LCodeGen* codegen_;