| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 | 91 |
| 92 Address RelocInfo::target_address_address() { | 92 Address RelocInfo::target_address_address() { |
| 93 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) | 93 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) |
| 94 || rmode_ == EMBEDDED_OBJECT | 94 || rmode_ == EMBEDDED_OBJECT |
| 95 || rmode_ == EXTERNAL_REFERENCE); | 95 || rmode_ == EXTERNAL_REFERENCE); |
| 96 return reinterpret_cast<Address>(pc_); | 96 return reinterpret_cast<Address>(pc_); |
| 97 } | 97 } |
| 98 | 98 |
| 99 | 99 |
| 100 Address RelocInfo::constant_pool_entry_address() { |
| 101 UNREACHABLE(); |
| 102 return NULL; |
| 103 } |
| 104 |
| 105 |
| 100 int RelocInfo::target_address_size() { | 106 int RelocInfo::target_address_size() { |
| 101 return Assembler::kSpecialTargetSize; | 107 return Assembler::kSpecialTargetSize; |
| 102 } | 108 } |
| 103 | 109 |
| 104 | 110 |
| 105 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) { | 111 void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) { |
| 106 Assembler::set_target_address_at(pc_, target); | 112 Assembler::set_target_address_at(pc_, target); |
| 107 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); | 113 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
| 108 if (mode == UPDATE_WRITE_BARRIER && host() != NULL && IsCodeTarget(rmode_)) { | 114 if (mode == UPDATE_WRITE_BARRIER && host() != NULL && IsCodeTarget(rmode_)) { |
| 109 Object* target_code = Code::GetCodeFromTargetAddress(target); | 115 Object* target_code = Code::GetCodeFromTargetAddress(target); |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 536 |
| 531 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { | 537 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { |
| 532 // [disp/r] | 538 // [disp/r] |
| 533 set_modrm(0, ebp); | 539 set_modrm(0, ebp); |
| 534 set_dispr(disp, rmode); | 540 set_dispr(disp, rmode); |
| 535 } | 541 } |
| 536 | 542 |
| 537 } } // namespace v8::internal | 543 } } // namespace v8::internal |
| 538 | 544 |
| 539 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ | 545 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ |
| OLD | NEW |