| 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 are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 return Memory::Object_at(pc_); | 118 return Memory::Object_at(pc_); |
| 119 } | 119 } |
| 120 | 120 |
| 121 | 121 |
| 122 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { | 122 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
| 123 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 123 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 124 return Memory::Object_Handle_at(pc_); | 124 return Memory::Object_Handle_at(pc_); |
| 125 } | 125 } |
| 126 | 126 |
| 127 | 127 |
| 128 Object** RelocInfo::target_object_address() { | |
| 129 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | |
| 130 return &Memory::Object_at(pc_); | |
| 131 } | |
| 132 | |
| 133 | |
| 134 void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) { | 128 void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) { |
| 135 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 129 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 136 ASSERT(!target->IsConsString()); | 130 ASSERT(!target->IsConsString()); |
| 137 Memory::Object_at(pc_) = target; | 131 Memory::Object_at(pc_) = target; |
| 138 CPU::FlushICache(pc_, sizeof(Address)); | 132 CPU::FlushICache(pc_, sizeof(Address)); |
| 139 if (mode == UPDATE_WRITE_BARRIER && | 133 if (mode == UPDATE_WRITE_BARRIER && |
| 140 host() != NULL && | 134 host() != NULL && |
| 141 target->IsHeapObject()) { | 135 target->IsHeapObject()) { |
| 142 host()->GetHeap()->incremental_marking()->RecordWrite( | 136 host()->GetHeap()->incremental_marking()->RecordWrite( |
| 143 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); | 137 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 518 |
| 525 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { | 519 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { |
| 526 // [disp/r] | 520 // [disp/r] |
| 527 set_modrm(0, ebp); | 521 set_modrm(0, ebp); |
| 528 set_dispr(disp, rmode); | 522 set_dispr(disp, rmode); |
| 529 } | 523 } |
| 530 | 524 |
| 531 } } // namespace v8::internal | 525 } } // namespace v8::internal |
| 532 | 526 |
| 533 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ | 527 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ |
| OLD | NEW |