| Index: src/crankshaft/arm64/lithium-codegen-arm64.h
|
| diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.h b/src/crankshaft/arm64/lithium-codegen-arm64.h
|
| index ca04fa27c09739a2661fa8b1cfd3b6a7d67fce81..7f444738aa26056adfb2480292dc893004a1c734 100644
|
| --- a/src/crankshaft/arm64/lithium-codegen-arm64.h
|
| +++ b/src/crankshaft/arm64/lithium-codegen-arm64.h
|
| @@ -368,28 +368,9 @@ class LCodeGen: public LCodeGenBase {
|
|
|
| class PushSafepointRegistersScope 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;
|
| -
|
| - UseScratchRegisterScope temps(codegen_->masm_);
|
| - // Preserve the value of lr which must be saved on the stack (the call to
|
| - // the stub will clobber it).
|
| - Register to_be_pushed_lr =
|
| - temps.UnsafeAcquire(StoreRegistersStateStub::to_be_pushed_lr());
|
| - codegen_->masm_->Mov(to_be_pushed_lr, lr);
|
| - 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_;
|
|
|