diff options
Diffstat (limited to 'deps/v8/src/crankshaft/mips64/lithium-codegen-mips64.h')
-rw-r--r-- | deps/v8/src/crankshaft/mips64/lithium-codegen-mips64.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/deps/v8/src/crankshaft/mips64/lithium-codegen-mips64.h b/deps/v8/src/crankshaft/mips64/lithium-codegen-mips64.h index aaa2e6be17..ba332ae360 100644 --- a/deps/v8/src/crankshaft/mips64/lithium-codegen-mips64.h +++ b/deps/v8/src/crankshaft/mips64/lithium-codegen-mips64.h @@ -360,24 +360,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_; |