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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 } | 64 } |
65 | 65 |
66 | 66 |
67 Address RelocInfo::target_address() { | 67 Address RelocInfo::target_address() { |
68 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); | 68 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); |
69 return Assembler::target_address_at(pc_); | 69 return Assembler::target_address_at(pc_); |
70 } | 70 } |
71 | 71 |
72 | 72 |
| 73 Address RelocInfo::target_address_address() { |
| 74 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); |
| 75 return reinterpret_cast<Address>(pc_); |
| 76 } |
| 77 |
| 78 |
73 void RelocInfo::set_target_address(Address target) { | 79 void RelocInfo::set_target_address(Address target) { |
74 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); | 80 ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY); |
75 Assembler::set_target_address_at(pc_, target); | 81 Assembler::set_target_address_at(pc_, target); |
76 } | 82 } |
77 | 83 |
78 | 84 |
79 Object* RelocInfo::target_object() { | 85 Object* RelocInfo::target_object() { |
80 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 86 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
81 return *reinterpret_cast<Object**>(pc_); | 87 return *reinterpret_cast<Object**>(pc_); |
82 } | 88 } |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 293 |
288 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { | 294 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { |
289 // [disp/r] | 295 // [disp/r] |
290 set_modrm(0, ebp); | 296 set_modrm(0, ebp); |
291 set_dispr(disp, rmode); | 297 set_dispr(disp, rmode); |
292 } | 298 } |
293 | 299 |
294 } } // namespace v8::internal | 300 } } // namespace v8::internal |
295 | 301 |
296 #endif // V8_ASSEMBLER_IA32_INL_H_ | 302 #endif // V8_ASSEMBLER_IA32_INL_H_ |
OLD | NEW |