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 3048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3059 CheckBuffer(); | 3059 CheckBuffer(); |
3060 *reinterpret_cast<uint64_t*>(pc_) = | 3060 *reinterpret_cast<uint64_t*>(pc_) = |
3061 reinterpret_cast<uint64_t>(stub->instruction_start()); | 3061 reinterpret_cast<uint64_t>(stub->instruction_start()); |
3062 pc_ += sizeof(uint64_t); | 3062 pc_ += sizeof(uint64_t); |
3063 } | 3063 } |
3064 | 3064 |
3065 | 3065 |
3066 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { | 3066 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
3067 // We do not try to reuse pool constants. | 3067 // We do not try to reuse pool constants. |
3068 RelocInfo rinfo(pc_, rmode, data, NULL); | 3068 RelocInfo rinfo(pc_, rmode, data, NULL); |
3069 if (rmode >= RelocInfo::JS_RETURN && rmode <= RelocInfo::DEBUG_BREAK_SLOT) { | 3069 if (rmode >= RelocInfo::JS_RETURN && |
| 3070 rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_CONSTRUCT_CALL) { |
3070 // Adjust code for new modes. | 3071 // Adjust code for new modes. |
3071 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) | 3072 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) |
3072 || RelocInfo::IsJSReturn(rmode) | 3073 || RelocInfo::IsJSReturn(rmode) |
3073 || RelocInfo::IsComment(rmode) | 3074 || RelocInfo::IsComment(rmode) |
3074 || RelocInfo::IsPosition(rmode)); | 3075 || RelocInfo::IsPosition(rmode)); |
3075 // These modes do not need an entry in the constant pool. | 3076 // These modes do not need an entry in the constant pool. |
3076 } | 3077 } |
3077 if (!RelocInfo::IsNone(rinfo.rmode())) { | 3078 if (!RelocInfo::IsNone(rinfo.rmode())) { |
3078 // Don't record external references unless the heap will be serialized. | 3079 // Don't record external references unless the heap will be serialized. |
3079 if (rmode == RelocInfo::EXTERNAL_REFERENCE && | 3080 if (rmode == RelocInfo::EXTERNAL_REFERENCE && |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3239 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3240 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3240 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); | 3241 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); |
3241 } | 3242 } |
3242 } | 3243 } |
3243 | 3244 |
3244 | 3245 |
3245 } // namespace internal | 3246 } // namespace internal |
3246 } // namespace v8 | 3247 } // namespace v8 |
3247 | 3248 |
3248 #endif // V8_TARGET_ARCH_MIPS64 | 3249 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |