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

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

Issue 2650193002: [debugger] remove debugger statement support from FCG/CS. (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 2860 matching lines...) Expand 10 before | Expand all | Expand 10 after
2871 Ldr(dst, MemOperand(dst, Context::SlotOffset(Context::PREVIOUS_INDEX))); 2871 Ldr(dst, MemOperand(dst, Context::SlotOffset(Context::PREVIOUS_INDEX)));
2872 } 2872 }
2873 } else { 2873 } else {
2874 // Slot is in the current function context. Move it into the 2874 // Slot is in the current function context. Move it into the
2875 // destination register in case we store into it (the write barrier 2875 // destination register in case we store into it (the write barrier
2876 // cannot be allowed to destroy the context in cp). 2876 // cannot be allowed to destroy the context in cp).
2877 Mov(dst, cp); 2877 Mov(dst, cp);
2878 } 2878 }
2879 } 2879 }
2880 2880
2881
2882 void MacroAssembler::DebugBreak() {
2883 Mov(x0, 0);
2884 Mov(x1, ExternalReference(Runtime::kHandleDebuggerStatement, isolate()));
2885 CEntryStub ces(isolate(), 1);
2886 DCHECK(AllowThisStubCall(&ces));
2887 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
2888 }
2889
2890 void MacroAssembler::MaybeDropFrames() { 2881 void MacroAssembler::MaybeDropFrames() {
2891 // Check whether we need to drop frames to restart a function on the stack. 2882 // Check whether we need to drop frames to restart a function on the stack.
2892 ExternalReference restart_fp = 2883 ExternalReference restart_fp =
2893 ExternalReference::debug_restart_fp_address(isolate()); 2884 ExternalReference::debug_restart_fp_address(isolate());
2894 Mov(x1, Operand(restart_fp)); 2885 Mov(x1, Operand(restart_fp));
2895 Ldr(x1, MemOperand(x1)); 2886 Ldr(x1, MemOperand(x1));
2896 Tst(x1, x1); 2887 Tst(x1, x1);
2897 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, 2888 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
2898 ne); 2889 ne);
2899 } 2890 }
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after
4640 } 4631 }
4641 4632
4642 4633
4643 #undef __ 4634 #undef __
4644 4635
4645 4636
4646 } // namespace internal 4637 } // namespace internal
4647 } // namespace v8 4638 } // namespace v8
4648 4639
4649 #endif // V8_TARGET_ARCH_ARM64 4640 #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