Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: src/arm64/macro-assembler-arm64.cc

Issue 2636913002: [liveedit] reimplement frame restarting. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/macro-assembler-arm64.h ('k') | src/assembler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after
2891 2891
2892 2892
2893 void MacroAssembler::DebugBreak() { 2893 void MacroAssembler::DebugBreak() {
2894 Mov(x0, 0); 2894 Mov(x0, 0);
2895 Mov(x1, ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); 2895 Mov(x1, ExternalReference(Runtime::kHandleDebuggerStatement, isolate()));
2896 CEntryStub ces(isolate(), 1); 2896 CEntryStub ces(isolate(), 1);
2897 DCHECK(AllowThisStubCall(&ces)); 2897 DCHECK(AllowThisStubCall(&ces));
2898 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); 2898 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
2899 } 2899 }
2900 2900
2901 void MacroAssembler::MaybeDropFrames() {
2902 // Check whether we need to drop frames to restart a function on the stack.
2903 ExternalReference restart_fp =
2904 ExternalReference::debug_restart_fp_address(isolate());
2905 Mov(x1, Operand(restart_fp));
2906 Ldr(x1, MemOperand(x1));
2907 Tst(x1, x1);
2908 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
2909 ne);
2910 }
2901 2911
2902 void MacroAssembler::PushStackHandler() { 2912 void MacroAssembler::PushStackHandler() {
2903 DCHECK(jssp.Is(StackPointer())); 2913 DCHECK(jssp.Is(StackPointer()));
2904 // Adjust this code if the asserts don't hold. 2914 // Adjust this code if the asserts don't hold.
2905 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); 2915 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize);
2906 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); 2916 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize);
2907 2917
2908 // For the JSEntry handler, we must preserve the live registers x0-x4. 2918 // For the JSEntry handler, we must preserve the live registers x0-x4.
2909 // (See JSEntryStub::GenerateBody().) 2919 // (See JSEntryStub::GenerateBody().)
2910 2920
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after
4668 } 4678 }
4669 4679
4670 4680
4671 #undef __ 4681 #undef __
4672 4682
4673 4683
4674 } // namespace internal 4684 } // namespace internal
4675 } // namespace v8 4685 } // namespace v8
4676 4686
4677 #endif // V8_TARGET_ARCH_ARM64 4687 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.h ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698