OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |