Index: src/crankshaft/mips/lithium-codegen-mips.h |
diff --git a/src/crankshaft/mips/lithium-codegen-mips.h b/src/crankshaft/mips/lithium-codegen-mips.h |
index bb09abc1df491f2ff8db508eaab50c1e9e0796cd..28ca01cd71d81533d7739fa13a20d2379b2e4aaf 100644 |
--- a/src/crankshaft/mips/lithium-codegen-mips.h |
+++ b/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_; |