| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
| 5 // met: | 5 // met: |
| 6 // | 6 // |
| 7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
| 8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
| 9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following | 10 // copyright notice, this list of conditions and the following |
| (...skipping 2932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2943 | 2943 |
| 2944 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { | 2944 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
| 2945 // We do not try to reuse pool constants. | 2945 // We do not try to reuse pool constants. |
| 2946 RelocInfo rinfo(isolate(), reinterpret_cast<byte*>(pc_), rmode, data, NULL); | 2946 RelocInfo rinfo(isolate(), reinterpret_cast<byte*>(pc_), rmode, data, NULL); |
| 2947 if (((rmode >= RelocInfo::COMMENT) && | 2947 if (((rmode >= RelocInfo::COMMENT) && |
| 2948 (rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_TAIL_CALL)) || | 2948 (rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_TAIL_CALL)) || |
| 2949 (rmode == RelocInfo::INTERNAL_REFERENCE) || | 2949 (rmode == RelocInfo::INTERNAL_REFERENCE) || |
| 2950 (rmode == RelocInfo::CONST_POOL) || (rmode == RelocInfo::VENEER_POOL) || | 2950 (rmode == RelocInfo::CONST_POOL) || (rmode == RelocInfo::VENEER_POOL) || |
| 2951 (rmode == RelocInfo::DEOPT_SCRIPT_OFFSET) || | 2951 (rmode == RelocInfo::DEOPT_SCRIPT_OFFSET) || |
| 2952 (rmode == RelocInfo::DEOPT_INLINING_ID) || | 2952 (rmode == RelocInfo::DEOPT_INLINING_ID) || |
| 2953 (rmode == RelocInfo::DEOPT_REASON) || (rmode == RelocInfo::DEOPT_ID) || | 2953 (rmode == RelocInfo::DEOPT_REASON) || (rmode == RelocInfo::DEOPT_ID)) { |
| 2954 (rmode == RelocInfo::GENERATOR_CONTINUATION)) { | |
| 2955 // Adjust code for new modes. | 2954 // Adjust code for new modes. |
| 2956 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) || RelocInfo::IsComment(rmode) || | 2955 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) || RelocInfo::IsComment(rmode) || |
| 2957 RelocInfo::IsDeoptReason(rmode) || RelocInfo::IsDeoptId(rmode) || | 2956 RelocInfo::IsDeoptReason(rmode) || RelocInfo::IsDeoptId(rmode) || |
| 2958 RelocInfo::IsDeoptPosition(rmode) || | 2957 RelocInfo::IsDeoptPosition(rmode) || |
| 2959 RelocInfo::IsInternalReference(rmode) || | 2958 RelocInfo::IsInternalReference(rmode) || |
| 2960 RelocInfo::IsConstPool(rmode) || RelocInfo::IsVeneerPool(rmode) || | 2959 RelocInfo::IsConstPool(rmode) || RelocInfo::IsVeneerPool(rmode)); |
| 2961 RelocInfo::IsGeneratorContinuation(rmode)); | |
| 2962 // These modes do not need an entry in the constant pool. | 2960 // These modes do not need an entry in the constant pool. |
| 2963 } else { | 2961 } else { |
| 2964 constpool_.RecordEntry(data, rmode); | 2962 constpool_.RecordEntry(data, rmode); |
| 2965 // Make sure the constant pool is not emitted in place of the next | 2963 // Make sure the constant pool is not emitted in place of the next |
| 2966 // instruction for which we just recorded relocation info. | 2964 // instruction for which we just recorded relocation info. |
| 2967 BlockConstPoolFor(1); | 2965 BlockConstPoolFor(1); |
| 2968 } | 2966 } |
| 2969 | 2967 |
| 2970 if (!RelocInfo::IsNone(rmode)) { | 2968 if (!RelocInfo::IsNone(rmode)) { |
| 2971 // Don't record external references unless the heap will be serialized. | 2969 // Don't record external references unless the heap will be serialized. |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3214 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3212 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
| 3215 DCHECK((target_offset >> 48) == 0); | 3213 DCHECK((target_offset >> 48) == 0); |
| 3216 add(rd, rd, scratch); | 3214 add(rd, rd, scratch); |
| 3217 } | 3215 } |
| 3218 | 3216 |
| 3219 | 3217 |
| 3220 } // namespace internal | 3218 } // namespace internal |
| 3221 } // namespace v8 | 3219 } // namespace v8 |
| 3222 | 3220 |
| 3223 #endif // V8_TARGET_ARCH_ARM64 | 3221 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |