| 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 2884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2895 } | 2895 } |
| 2896 | 2896 |
| 2897 // Pending relocation entries are also relative, no need to relocate. | 2897 // Pending relocation entries are also relative, no need to relocate. |
| 2898 } | 2898 } |
| 2899 | 2899 |
| 2900 | 2900 |
| 2901 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { | 2901 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
| 2902 // We do not try to reuse pool constants. | 2902 // We do not try to reuse pool constants. |
| 2903 RelocInfo rinfo(reinterpret_cast<byte*>(pc_), rmode, data, NULL); | 2903 RelocInfo rinfo(reinterpret_cast<byte*>(pc_), rmode, data, NULL); |
| 2904 if (((rmode >= RelocInfo::JS_RETURN) && | 2904 if (((rmode >= RelocInfo::JS_RETURN) && |
| 2905 (rmode <= RelocInfo::DEBUG_BREAK_SLOT)) || | 2905 (rmode <= RelocInfo::DEBUG_BREAK_SLOT_AT_CONSTRUCT_CALL)) || |
| 2906 (rmode == RelocInfo::INTERNAL_REFERENCE) || | 2906 (rmode == RelocInfo::INTERNAL_REFERENCE) || |
| 2907 (rmode == RelocInfo::CONST_POOL) || | 2907 (rmode == RelocInfo::CONST_POOL) || (rmode == RelocInfo::VENEER_POOL) || |
| 2908 (rmode == RelocInfo::VENEER_POOL) || | |
| 2909 (rmode == RelocInfo::DEOPT_REASON)) { | 2908 (rmode == RelocInfo::DEOPT_REASON)) { |
| 2910 // Adjust code for new modes. | 2909 // Adjust code for new modes. |
| 2911 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) | 2910 DCHECK(RelocInfo::IsDebugBreakSlot(rmode) |
| 2912 || RelocInfo::IsJSReturn(rmode) | 2911 || RelocInfo::IsJSReturn(rmode) |
| 2913 || RelocInfo::IsComment(rmode) | 2912 || RelocInfo::IsComment(rmode) |
| 2914 || RelocInfo::IsDeoptReason(rmode) | 2913 || RelocInfo::IsDeoptReason(rmode) |
| 2915 || RelocInfo::IsPosition(rmode) | 2914 || RelocInfo::IsPosition(rmode) |
| 2916 || RelocInfo::IsInternalReference(rmode) | 2915 || RelocInfo::IsInternalReference(rmode) |
| 2917 || RelocInfo::IsConstPool(rmode) | 2916 || RelocInfo::IsConstPool(rmode) |
| 2918 || RelocInfo::IsVeneerPool(rmode)); | 2917 || RelocInfo::IsVeneerPool(rmode)); |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3172 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3171 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
| 3173 DCHECK((target_offset >> 48) == 0); | 3172 DCHECK((target_offset >> 48) == 0); |
| 3174 add(rd, rd, scratch); | 3173 add(rd, rd, scratch); |
| 3175 } | 3174 } |
| 3176 | 3175 |
| 3177 | 3176 |
| 3178 } // namespace internal | 3177 } // namespace internal |
| 3179 } // namespace v8 | 3178 } // namespace v8 |
| 3180 | 3179 |
| 3181 #endif // V8_TARGET_ARCH_ARM64 | 3180 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |