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 3062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3073 | 3073 |
3074 void Assembler::RecordComment(const char* msg) { | 3074 void Assembler::RecordComment(const char* msg) { |
3075 if (FLAG_code_comments) { | 3075 if (FLAG_code_comments) { |
3076 CheckBuffer(); | 3076 CheckBuffer(); |
3077 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 3077 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
3078 } | 3078 } |
3079 } | 3079 } |
3080 | 3080 |
3081 | 3081 |
3082 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { | 3082 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
3083 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { | 3083 if (FLAG_trace_deopt) { |
3084 EnsureSpace ensure_space(this); | 3084 EnsureSpace ensure_space(this); |
3085 RecordRelocInfo(RelocInfo::POSITION, raw_position); | 3085 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
3086 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); | 3086 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
3087 } | 3087 } |
3088 } | 3088 } |
3089 | 3089 |
3090 | 3090 |
3091 int Assembler::buffer_space() const { | 3091 int Assembler::buffer_space() const { |
3092 return reloc_info_writer.pos() - reinterpret_cast<byte*>(pc_); | 3092 return reloc_info_writer.pos() - reinterpret_cast<byte*>(pc_); |
3093 } | 3093 } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3157 movz(scratch, (target_offset >> 16) & 0xFFFF, 16); | 3157 movz(scratch, (target_offset >> 16) & 0xFFFF, 16); |
3158 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3158 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
3159 DCHECK((target_offset >> 48) == 0); | 3159 DCHECK((target_offset >> 48) == 0); |
3160 add(rd, rd, scratch); | 3160 add(rd, rd, scratch); |
3161 } | 3161 } |
3162 | 3162 |
3163 | 3163 |
3164 } } // namespace v8::internal | 3164 } } // namespace v8::internal |
3165 | 3165 |
3166 #endif // V8_TARGET_ARCH_ARM64 | 3166 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |