Index: src/crankshaft/ppc/lithium-codegen-ppc.h |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.h b/src/crankshaft/ppc/lithium-codegen-ppc.h |
index a4a90a7184e848328b2a0e4088470883a6c42caf..32b9e1848735dc3aafb661a6abc28c51945cea74 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.h |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.h |
@@ -294,21 +294,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_->CallStub(&stub); |
- } |
- |
- ~PushSafepointRegistersScope() { |
- DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters); |
- RestoreRegistersStateStub stub(codegen_->isolate()); |
- codegen_->masm_->CallStub(&stub); |
- codegen_->expected_safepoint_kind_ = Safepoint::kSimple; |
- } |
+ explicit PushSafepointRegistersScope(LCodeGen* codegen); |
+ |
+ ~PushSafepointRegistersScope(); |
private: |
LCodeGen* codegen_; |