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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 CPU::FlushICache(pc_, sizeof(Address)); | 138 CPU::FlushICache(pc_, sizeof(Address)); |
139 if (mode == UPDATE_WRITE_BARRIER && | 139 if (mode == UPDATE_WRITE_BARRIER && |
140 host() != NULL && | 140 host() != NULL && |
141 target->IsHeapObject()) { | 141 target->IsHeapObject()) { |
142 host()->GetHeap()->incremental_marking()->RecordWrite( | 142 host()->GetHeap()->incremental_marking()->RecordWrite( |
143 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); | 143 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); |
144 } | 144 } |
145 } | 145 } |
146 | 146 |
147 | 147 |
148 Address* RelocInfo::target_reference_address() { | 148 Address RelocInfo::target_reference() { |
149 ASSERT(rmode_ == RelocInfo::EXTERNAL_REFERENCE); | 149 ASSERT(rmode_ == RelocInfo::EXTERNAL_REFERENCE); |
150 return reinterpret_cast<Address*>(pc_); | 150 return Memory::Address_at(pc_); |
151 } | 151 } |
152 | 152 |
153 | 153 |
154 Address RelocInfo::target_runtime_entry(Assembler* origin) { | 154 Address RelocInfo::target_runtime_entry(Assembler* origin) { |
155 ASSERT(IsRuntimeEntry(rmode_)); | 155 ASSERT(IsRuntimeEntry(rmode_)); |
156 return reinterpret_cast<Address>(*reinterpret_cast<int32_t*>(pc_)); | 156 return reinterpret_cast<Address>(*reinterpret_cast<int32_t*>(pc_)); |
157 } | 157 } |
158 | 158 |
159 | 159 |
160 void RelocInfo::set_target_runtime_entry(Address target, | 160 void RelocInfo::set_target_runtime_entry(Address target, |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 | 524 |
525 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { | 525 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { |
526 // [disp/r] | 526 // [disp/r] |
527 set_modrm(0, ebp); | 527 set_modrm(0, ebp); |
528 set_dispr(disp, rmode); | 528 set_dispr(disp, rmode); |
529 } | 529 } |
530 | 530 |
531 } } // namespace v8::internal | 531 } } // namespace v8::internal |
532 | 532 |
533 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ | 533 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ |
OLD | NEW |