| 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 2948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2959 } | 2959 } |
| 2960 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); | 2960 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); |
| 2961 EmitHelper(data); | 2961 EmitHelper(data); |
| 2962 } | 2962 } |
| 2963 | 2963 |
| 2964 | 2964 |
| 2965 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { | 2965 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
| 2966 // We do not try to reuse pool constants. | 2966 // We do not try to reuse pool constants. |
| 2967 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); | 2967 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); |
| 2968 if (rmode >= RelocInfo::COMMENT && | 2968 if (rmode >= RelocInfo::COMMENT && |
| 2969 rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_CALL) { | 2969 rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_TAIL_CALL) { |
| 2970 // Adjust code for new modes. | 2970 // Adjust code for new modes. |
| 2971 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) | 2971 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) |
| 2972 || RelocInfo::IsComment(rmode) | 2972 || RelocInfo::IsComment(rmode) |
| 2973 || RelocInfo::IsPosition(rmode)); | 2973 || RelocInfo::IsPosition(rmode)); |
| 2974 // These modes do not need an entry in the constant pool. | 2974 // These modes do not need an entry in the constant pool. |
| 2975 } | 2975 } |
| 2976 if (!RelocInfo::IsNone(rinfo.rmode())) { | 2976 if (!RelocInfo::IsNone(rinfo.rmode())) { |
| 2977 // Don't record external references unless the heap will be serialized. | 2977 // Don't record external references unless the heap will be serialized. |
| 2978 if (rmode == RelocInfo::EXTERNAL_REFERENCE && | 2978 if (rmode == RelocInfo::EXTERNAL_REFERENCE && |
| 2979 !serializer_enabled() && !emit_debug_code()) { | 2979 !serializer_enabled() && !emit_debug_code()) { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3152 | 3152 |
| 3153 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3153 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 3154 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3154 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
| 3155 } | 3155 } |
| 3156 } | 3156 } |
| 3157 | 3157 |
| 3158 } // namespace internal | 3158 } // namespace internal |
| 3159 } // namespace v8 | 3159 } // namespace v8 |
| 3160 | 3160 |
| 3161 #endif // V8_TARGET_ARCH_MIPS | 3161 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |