| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 // Patch the code at the current address with a call to the target. | 298 // Patch the code at the current address with a call to the target. |
| 299 UNIMPLEMENTED(); | 299 UNIMPLEMENTED(); |
| 300 } | 300 } |
| 301 | 301 |
| 302 | 302 |
| 303 // ----------------------------------------------------------------------------- | 303 // ----------------------------------------------------------------------------- |
| 304 // Implementation of Operand and MemOperand | 304 // Implementation of Operand and MemOperand |
| 305 // See assembler-arm-inl.h for inlined constructors | 305 // See assembler-arm-inl.h for inlined constructors |
| 306 | 306 |
| 307 Operand::Operand(Handle<Object> handle) { | 307 Operand::Operand(Handle<Object> handle) { |
| 308 ALLOW_HANDLE_DEREF("using and embedding raw address"); |
| 308 rm_ = no_reg; | 309 rm_ = no_reg; |
| 309 // Verify all Objects referred by code are NOT in new space. | 310 // Verify all Objects referred by code are NOT in new space. |
| 310 Object* obj = *handle; | 311 Object* obj = *handle; |
| 311 ASSERT(!HEAP->InNewSpace(obj)); | 312 ASSERT(!HEAP->InNewSpace(obj)); |
| 312 if (obj->IsHeapObject()) { | 313 if (obj->IsHeapObject()) { |
| 313 imm32_ = reinterpret_cast<intptr_t>(handle.location()); | 314 imm32_ = reinterpret_cast<intptr_t>(handle.location()); |
| 314 rmode_ = RelocInfo::EMBEDDED_OBJECT; | 315 rmode_ = RelocInfo::EMBEDDED_OBJECT; |
| 315 } else { | 316 } else { |
| 316 // no relocation needed | 317 // no relocation needed |
| 317 imm32_ = reinterpret_cast<intptr_t>(obj); | 318 imm32_ = reinterpret_cast<intptr_t>(obj); |
| 318 rmode_ = RelocInfo::NONE32; | 319 rmode_ = RelocInfo::NONE32; |
| 319 } | 320 } |
| 320 } | 321 } |
| 321 | 322 |
| 322 | 323 |
| 323 Operand::Operand(Register rm, ShiftOp shift_op, int shift_imm) { | 324 Operand::Operand(Register rm, ShiftOp shift_op, int shift_imm) { |
| 324 ASSERT(is_uint5(shift_imm)); | 325 ASSERT(is_uint5(shift_imm)); |
| 325 ASSERT(shift_op != ROR || shift_imm != 0); // use RRX if you mean it | 326 ASSERT(shift_op != ROR || shift_imm != 0); // use RRX if you mean it |
| 326 rm_ = rm; | 327 rm_ = rm; |
| 327 rs_ = no_reg; | 328 rs_ = no_reg; |
| (...skipping 2751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3079 | 3080 |
| 3080 // Since a constant pool was just emitted, move the check offset forward by | 3081 // Since a constant pool was just emitted, move the check offset forward by |
| 3081 // the standard interval. | 3082 // the standard interval. |
| 3082 next_buffer_check_ = pc_offset() + kCheckPoolInterval; | 3083 next_buffer_check_ = pc_offset() + kCheckPoolInterval; |
| 3083 } | 3084 } |
| 3084 | 3085 |
| 3085 | 3086 |
| 3086 } } // namespace v8::internal | 3087 } } // namespace v8::internal |
| 3087 | 3088 |
| 3088 #endif // V8_TARGET_ARCH_ARM | 3089 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |