Index: src/crankshaft/s390/lithium-codegen-s390.h |
diff --git a/src/crankshaft/s390/lithium-codegen-s390.h b/src/crankshaft/s390/lithium-codegen-s390.h |
index 30e9d2b9971e6bd6da407f692c03e8bf3b130e70..a8d59ff5b1387ca97852370682bcc2d783713ffd 100644 |
--- a/src/crankshaft/s390/lithium-codegen-s390.h |
+++ b/src/crankshaft/s390/lithium-codegen-s390.h |
@@ -293,21 +293,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_; |