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

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

Issue 1232803002: Debugger: refactor reloc info. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mips Created 5 years, 5 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/debug-arm64.cc ('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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 3015 matching lines...) Expand 10 before | Expand all | Expand 10 after
3026 Mov(dst, cp); 3026 Mov(dst, cp);
3027 } 3027 }
3028 } 3028 }
3029 3029
3030 3030
3031 void MacroAssembler::DebugBreak() { 3031 void MacroAssembler::DebugBreak() {
3032 Mov(x0, 0); 3032 Mov(x0, 0);
3033 Mov(x1, ExternalReference(Runtime::kDebugBreak, isolate())); 3033 Mov(x1, ExternalReference(Runtime::kDebugBreak, isolate()));
3034 CEntryStub ces(isolate(), 1); 3034 CEntryStub ces(isolate(), 1);
3035 DCHECK(AllowThisStubCall(&ces)); 3035 DCHECK(AllowThisStubCall(&ces));
3036 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); 3036 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
3037 } 3037 }
3038 3038
3039 3039
3040 void MacroAssembler::PushStackHandler() { 3040 void MacroAssembler::PushStackHandler() {
3041 DCHECK(jssp.Is(StackPointer())); 3041 DCHECK(jssp.Is(StackPointer()));
3042 // Adjust this code if the asserts don't hold. 3042 // Adjust this code if the asserts don't hold.
3043 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); 3043 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize);
3044 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); 3044 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize);
3045 3045
3046 // For the JSEntry handler, we must preserve the live registers x0-x4. 3046 // For the JSEntry handler, we must preserve the live registers x0-x4.
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
5149 } 5149 }
5150 5150
5151 5151
5152 #undef __ 5152 #undef __
5153 5153
5154 5154
5155 } // namespace internal 5155 } // namespace internal
5156 } // namespace v8 5156 } // namespace v8
5157 5157
5158 #endif // V8_TARGET_ARCH_ARM64 5158 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/debug-arm64.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698