| 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 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3212 } | 3212 } |
| 3213 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); | 3213 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); |
| 3214 EmitHelper(data); | 3214 EmitHelper(data); |
| 3215 } | 3215 } |
| 3216 | 3216 |
| 3217 | 3217 |
| 3218 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { | 3218 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
| 3219 // We do not try to reuse pool constants. | 3219 // We do not try to reuse pool constants. |
| 3220 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); | 3220 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); |
| 3221 if (rmode >= RelocInfo::COMMENT && | 3221 if (rmode >= RelocInfo::COMMENT && |
| 3222 rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_CALL) { | 3222 rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_TAIL_CALL) { |
| 3223 // Adjust code for new modes. | 3223 // Adjust code for new modes. |
| 3224 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) | 3224 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) |
| 3225 || RelocInfo::IsComment(rmode) | 3225 || RelocInfo::IsComment(rmode) |
| 3226 || RelocInfo::IsPosition(rmode)); | 3226 || RelocInfo::IsPosition(rmode)); |
| 3227 // These modes do not need an entry in the constant pool. | 3227 // These modes do not need an entry in the constant pool. |
| 3228 } | 3228 } |
| 3229 if (!RelocInfo::IsNone(rinfo.rmode())) { | 3229 if (!RelocInfo::IsNone(rinfo.rmode())) { |
| 3230 // Don't record external references unless the heap will be serialized. | 3230 // Don't record external references unless the heap will be serialized. |
| 3231 if (rmode == RelocInfo::EXTERNAL_REFERENCE && | 3231 if (rmode == RelocInfo::EXTERNAL_REFERENCE && |
| 3232 !serializer_enabled() && !emit_debug_code()) { | 3232 !serializer_enabled() && !emit_debug_code()) { |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3392 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3392 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 3393 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); | 3393 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); |
| 3394 } | 3394 } |
| 3395 } | 3395 } |
| 3396 | 3396 |
| 3397 | 3397 |
| 3398 } // namespace internal | 3398 } // namespace internal |
| 3399 } // namespace v8 | 3399 } // namespace v8 |
| 3400 | 3400 |
| 3401 #endif // V8_TARGET_ARCH_MIPS64 | 3401 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |