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

Side by Side Diff: src/ppc/macro-assembler-ppc.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/objects.h ('k') | src/x64/macro-assembler-x64.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #if V8_TARGET_ARCH_PPC 10 #if V8_TARGET_ARCH_PPC
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 cmpi(scratch, Operand(LAST_NAME_TYPE)); 1143 cmpi(scratch, Operand(LAST_NAME_TYPE));
1144 bgt(fail); 1144 bgt(fail);
1145 } 1145 }
1146 1146
1147 1147
1148 void MacroAssembler::DebugBreak() { 1148 void MacroAssembler::DebugBreak() {
1149 li(r3, Operand::Zero()); 1149 li(r3, Operand::Zero());
1150 mov(r4, Operand(ExternalReference(Runtime::kDebugBreak, isolate()))); 1150 mov(r4, Operand(ExternalReference(Runtime::kDebugBreak, isolate())));
1151 CEntryStub ces(isolate(), 1); 1151 CEntryStub ces(isolate(), 1);
1152 DCHECK(AllowThisStubCall(&ces)); 1152 DCHECK(AllowThisStubCall(&ces));
1153 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); 1153 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
1154 } 1154 }
1155 1155
1156 1156
1157 void MacroAssembler::PushStackHandler() { 1157 void MacroAssembler::PushStackHandler() {
1158 // Adjust this code if not the case. 1158 // Adjust this code if not the case.
1159 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); 1159 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize);
1160 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); 1160 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize);
1161 1161
1162 // Link the current handler as the next handler. 1162 // Link the current handler as the next handler.
1163 // Preserve r3-r7. 1163 // Preserve r3-r7.
(...skipping 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after
4662 } 4662 }
4663 if (mag.shift > 0) srawi(result, result, mag.shift); 4663 if (mag.shift > 0) srawi(result, result, mag.shift);
4664 ExtractBit(r0, dividend, 31); 4664 ExtractBit(r0, dividend, 31);
4665 add(result, result, r0); 4665 add(result, result, r0);
4666 } 4666 }
4667 4667
4668 } // namespace internal 4668 } // namespace internal
4669 } // namespace v8 4669 } // namespace v8
4670 4670
4671 #endif // V8_TARGET_ARCH_PPC 4671 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698