OLD | NEW |
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 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2881 Ldr(dst, MemOperand(dst, Context::SlotOffset(Context::PREVIOUS_INDEX))); | 2881 Ldr(dst, MemOperand(dst, Context::SlotOffset(Context::PREVIOUS_INDEX))); |
2882 } | 2882 } |
2883 } else { | 2883 } else { |
2884 // Slot is in the current function context. Move it into the | 2884 // Slot is in the current function context. Move it into the |
2885 // destination register in case we store into it (the write barrier | 2885 // destination register in case we store into it (the write barrier |
2886 // cannot be allowed to destroy the context in cp). | 2886 // cannot be allowed to destroy the context in cp). |
2887 Mov(dst, cp); | 2887 Mov(dst, cp); |
2888 } | 2888 } |
2889 } | 2889 } |
2890 | 2890 |
| 2891 |
| 2892 void MacroAssembler::DebugBreak() { |
| 2893 Mov(x0, 0); |
| 2894 Mov(x1, ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); |
| 2895 CEntryStub ces(isolate(), 1); |
| 2896 DCHECK(AllowThisStubCall(&ces)); |
| 2897 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); |
| 2898 } |
| 2899 |
2891 void MacroAssembler::MaybeDropFrames() { | 2900 void MacroAssembler::MaybeDropFrames() { |
2892 // Check whether we need to drop frames to restart a function on the stack. | 2901 // Check whether we need to drop frames to restart a function on the stack. |
2893 ExternalReference restart_fp = | 2902 ExternalReference restart_fp = |
2894 ExternalReference::debug_restart_fp_address(isolate()); | 2903 ExternalReference::debug_restart_fp_address(isolate()); |
2895 Mov(x1, Operand(restart_fp)); | 2904 Mov(x1, Operand(restart_fp)); |
2896 Ldr(x1, MemOperand(x1)); | 2905 Ldr(x1, MemOperand(x1)); |
2897 Tst(x1, x1); | 2906 Tst(x1, x1); |
2898 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, | 2907 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, |
2899 ne); | 2908 ne); |
2900 } | 2909 } |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4668 } | 4677 } |
4669 | 4678 |
4670 | 4679 |
4671 #undef __ | 4680 #undef __ |
4672 | 4681 |
4673 | 4682 |
4674 } // namespace internal | 4683 } // namespace internal |
4675 } // namespace v8 | 4684 } // namespace v8 |
4676 | 4685 |
4677 #endif // V8_TARGET_ARCH_ARM64 | 4686 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |