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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return Memory::Object_at(pc_); | 117 return Memory::Object_at(pc_); |
118 } | 118 } |
119 | 119 |
120 | 120 |
121 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { | 121 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
122 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 122 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
123 return Memory::Object_Handle_at(pc_); | 123 return Memory::Object_Handle_at(pc_); |
124 } | 124 } |
125 | 125 |
126 | 126 |
| 127 bool RelocInfo::NeedsInitializeRuntimeEntry() { |
| 128 return false; |
| 129 } |
| 130 |
| 131 |
| 132 Address RelocInfo::target_runtime_entry(Assembler* origin) { |
| 133 UNREACHABLE(); |
| 134 return NULL; |
| 135 } |
| 136 |
| 137 |
127 Object** RelocInfo::target_object_address() { | 138 Object** RelocInfo::target_object_address() { |
128 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 139 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
129 return &Memory::Object_at(pc_); | 140 return &Memory::Object_at(pc_); |
130 } | 141 } |
131 | 142 |
132 | 143 |
133 void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) { | 144 void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) { |
134 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 145 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
135 Memory::Object_at(pc_) = target; | 146 Memory::Object_at(pc_) = target; |
136 CPU::FlushICache(pc_, sizeof(Address)); | 147 CPU::FlushICache(pc_, sizeof(Address)); |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 505 |
495 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { | 506 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { |
496 // [disp/r] | 507 // [disp/r] |
497 set_modrm(0, ebp); | 508 set_modrm(0, ebp); |
498 set_dispr(disp, rmode); | 509 set_dispr(disp, rmode); |
499 } | 510 } |
500 | 511 |
501 } } // namespace v8::internal | 512 } } // namespace v8::internal |
502 | 513 |
503 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ | 514 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ |
OLD | NEW |