OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // Patch the code at the current address with a call to the target. | 317 // Patch the code at the current address with a call to the target. |
318 UNIMPLEMENTED(); | 318 UNIMPLEMENTED(); |
319 } | 319 } |
320 | 320 |
321 | 321 |
322 // ----------------------------------------------------------------------------- | 322 // ----------------------------------------------------------------------------- |
323 // Implementation of Operand and MemOperand | 323 // Implementation of Operand and MemOperand |
324 // See assembler-arm-inl.h for inlined constructors | 324 // See assembler-arm-inl.h for inlined constructors |
325 | 325 |
326 Operand::Operand(Handle<Object> handle) { | 326 Operand::Operand(Handle<Object> handle) { |
327 #ifdef DEBUG | |
328 Isolate* isolate = Isolate::Current(); | |
329 #endif | |
330 AllowDeferredHandleDereference using_raw_address; | 327 AllowDeferredHandleDereference using_raw_address; |
331 rm_ = no_reg; | 328 rm_ = no_reg; |
332 // Verify all Objects referred by code are NOT in new space. | 329 // Verify all Objects referred by code are NOT in new space. |
333 Object* obj = *handle; | 330 Object* obj = *handle; |
334 ASSERT(!isolate->heap()->InNewSpace(obj)); | |
335 if (obj->IsHeapObject()) { | 331 if (obj->IsHeapObject()) { |
| 332 ASSERT(!HeapObject::cast(obj)->GetHeap()->InNewSpace(obj)); |
336 imm32_ = reinterpret_cast<intptr_t>(handle.location()); | 333 imm32_ = reinterpret_cast<intptr_t>(handle.location()); |
337 rmode_ = RelocInfo::EMBEDDED_OBJECT; | 334 rmode_ = RelocInfo::EMBEDDED_OBJECT; |
338 } else { | 335 } else { |
339 // no relocation needed | 336 // no relocation needed |
340 imm32_ = reinterpret_cast<intptr_t>(obj); | 337 imm32_ = reinterpret_cast<intptr_t>(obj); |
341 rmode_ = RelocInfo::NONE32; | 338 rmode_ = RelocInfo::NONE32; |
342 } | 339 } |
343 } | 340 } |
344 | 341 |
345 | 342 |
(...skipping 3008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3354 | 3351 |
3355 // Since a constant pool was just emitted, move the check offset forward by | 3352 // Since a constant pool was just emitted, move the check offset forward by |
3356 // the standard interval. | 3353 // the standard interval. |
3357 next_buffer_check_ = pc_offset() + kCheckPoolInterval; | 3354 next_buffer_check_ = pc_offset() + kCheckPoolInterval; |
3358 } | 3355 } |
3359 | 3356 |
3360 | 3357 |
3361 } } // namespace v8::internal | 3358 } } // namespace v8::internal |
3362 | 3359 |
3363 #endif // V8_TARGET_ARCH_ARM | 3360 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |