| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_ARM | 9 #if V8_TARGET_ARCH_ARM |
| 10 | 10 |
| (...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1427 Label* fail) { | 1427 Label* fail) { |
| 1428 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); | 1428 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
| 1429 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); | 1429 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); |
| 1430 cmp(scratch, Operand(LAST_NAME_TYPE)); | 1430 cmp(scratch, Operand(LAST_NAME_TYPE)); |
| 1431 b(hi, fail); | 1431 b(hi, fail); |
| 1432 } | 1432 } |
| 1433 | 1433 |
| 1434 | 1434 |
| 1435 void MacroAssembler::DebugBreak() { | 1435 void MacroAssembler::DebugBreak() { |
| 1436 mov(r0, Operand::Zero()); | 1436 mov(r0, Operand::Zero()); |
| 1437 mov(r1, Operand(ExternalReference(Runtime::kDebugBreak, isolate()))); | 1437 mov(r1, |
| 1438 Operand(ExternalReference(Runtime::kHandleDebuggerStatement, isolate()))); |
| 1438 CEntryStub ces(isolate(), 1); | 1439 CEntryStub ces(isolate(), 1); |
| 1439 DCHECK(AllowThisStubCall(&ces)); | 1440 DCHECK(AllowThisStubCall(&ces)); |
| 1440 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); | 1441 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); |
| 1441 } | 1442 } |
| 1442 | 1443 |
| 1443 | 1444 |
| 1444 void MacroAssembler::PushStackHandler() { | 1445 void MacroAssembler::PushStackHandler() { |
| 1445 // Adjust this code if not the case. | 1446 // Adjust this code if not the case. |
| 1446 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); | 1447 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); |
| 1447 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 1448 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
| (...skipping 2464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3912 } | 3913 } |
| 3913 } | 3914 } |
| 3914 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 3915 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
| 3915 add(result, result, Operand(dividend, LSR, 31)); | 3916 add(result, result, Operand(dividend, LSR, 31)); |
| 3916 } | 3917 } |
| 3917 | 3918 |
| 3918 } // namespace internal | 3919 } // namespace internal |
| 3919 } // namespace v8 | 3920 } // namespace v8 |
| 3920 | 3921 |
| 3921 #endif // V8_TARGET_ARCH_ARM | 3922 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |