| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 void MacroAssembler::IsObjectNameType(Register object, | 1328 void MacroAssembler::IsObjectNameType(Register object, |
| 1329 Register scratch, | 1329 Register scratch, |
| 1330 Label* fail) { | 1330 Label* fail) { |
| 1331 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); | 1331 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
| 1332 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); | 1332 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); |
| 1333 cmp(scratch, Operand(LAST_NAME_TYPE)); | 1333 cmp(scratch, Operand(LAST_NAME_TYPE)); |
| 1334 b(hi, fail); | 1334 b(hi, fail); |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 | 1337 |
| 1338 #ifdef ENABLE_DEBUGGER_SUPPORT | |
| 1339 void MacroAssembler::DebugBreak() { | 1338 void MacroAssembler::DebugBreak() { |
| 1340 mov(r0, Operand::Zero()); | 1339 mov(r0, Operand::Zero()); |
| 1341 mov(r1, Operand(ExternalReference(Runtime::kDebugBreak, isolate()))); | 1340 mov(r1, Operand(ExternalReference(Runtime::kDebugBreak, isolate()))); |
| 1342 CEntryStub ces(isolate(), 1); | 1341 CEntryStub ces(isolate(), 1); |
| 1343 ASSERT(AllowThisStubCall(&ces)); | 1342 ASSERT(AllowThisStubCall(&ces)); |
| 1344 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); | 1343 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); |
| 1345 } | 1344 } |
| 1346 #endif | |
| 1347 | 1345 |
| 1348 | 1346 |
| 1349 void MacroAssembler::PushTryHandler(StackHandler::Kind kind, | 1347 void MacroAssembler::PushTryHandler(StackHandler::Kind kind, |
| 1350 int handler_index) { | 1348 int handler_index) { |
| 1351 // Adjust this code if not the case. | 1349 // Adjust this code if not the case. |
| 1352 STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize); | 1350 STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize); |
| 1353 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 1351 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
| 1354 STATIC_ASSERT(StackHandlerConstants::kCodeOffset == 1 * kPointerSize); | 1352 STATIC_ASSERT(StackHandlerConstants::kCodeOffset == 1 * kPointerSize); |
| 1355 STATIC_ASSERT(StackHandlerConstants::kStateOffset == 2 * kPointerSize); | 1353 STATIC_ASSERT(StackHandlerConstants::kStateOffset == 2 * kPointerSize); |
| 1356 STATIC_ASSERT(StackHandlerConstants::kContextOffset == 3 * kPointerSize); | 1354 STATIC_ASSERT(StackHandlerConstants::kContextOffset == 3 * kPointerSize); |
| (...skipping 2733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4090 sub(result, result, Operand(dividend)); | 4088 sub(result, result, Operand(dividend)); |
| 4091 } | 4089 } |
| 4092 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift())); | 4090 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift())); |
| 4093 add(result, result, Operand(dividend, LSR, 31)); | 4091 add(result, result, Operand(dividend, LSR, 31)); |
| 4094 } | 4092 } |
| 4095 | 4093 |
| 4096 | 4094 |
| 4097 } } // namespace v8::internal | 4095 } } // namespace v8::internal |
| 4098 | 4096 |
| 4099 #endif // V8_TARGET_ARCH_ARM | 4097 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |