| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 namespace v8 { | 44 namespace v8 { |
| 45 namespace internal { | 45 namespace internal { |
| 46 | 46 |
| 47 Condition NegateCondition(Condition cc) { | 47 Condition NegateCondition(Condition cc) { |
| 48 ASSERT(cc != al); | 48 ASSERT(cc != al); |
| 49 return static_cast<Condition>(cc ^ ne); | 49 return static_cast<Condition>(cc ^ ne); |
| 50 } | 50 } |
| 51 | 51 |
| 52 | 52 |
| 53 void RelocInfo::apply(int delta) { | 53 void RelocInfo::apply(intptr_t delta) { |
| 54 if (RelocInfo::IsInternalReference(rmode_)) { | 54 if (RelocInfo::IsInternalReference(rmode_)) { |
| 55 // absolute code pointer inside code object moves with the code object. | 55 // absolute code pointer inside code object moves with the code object. |
| 56 int32_t* p = reinterpret_cast<int32_t*>(pc_); | 56 int32_t* p = reinterpret_cast<int32_t*>(pc_); |
| 57 *p += delta; // relocate entry | 57 *p += delta; // relocate entry |
| 58 } | 58 } |
| 59 // We do not use pc relative addressing on ARM, so there is | 59 // We do not use pc relative addressing on ARM, so there is |
| 60 // nothing else to do. | 60 // nothing else to do. |
| 61 } | 61 } |
| 62 | 62 |
| 63 | 63 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // CPU::FlushICache(pc, sizeof(target)); | 241 // CPU::FlushICache(pc, sizeof(target)); |
| 242 // However, on ARM, no instruction was actually patched by the assignment | 242 // However, on ARM, no instruction was actually patched by the assignment |
| 243 // above; the target address is not part of an instruction, it is patched in | 243 // above; the target address is not part of an instruction, it is patched in |
| 244 // the constant pool and is read via a data access; the instruction accessing | 244 // the constant pool and is read via a data access; the instruction accessing |
| 245 // this address in the constant pool remains unchanged. | 245 // this address in the constant pool remains unchanged. |
| 246 } | 246 } |
| 247 | 247 |
| 248 } } // namespace v8::internal | 248 } } // namespace v8::internal |
| 249 | 249 |
| 250 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 250 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
| OLD | NEW |