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 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3070 | 3070 |
3071 | 3071 |
3072 void Assembler::RecordComment(const char* msg) { | 3072 void Assembler::RecordComment(const char* msg) { |
3073 if (FLAG_code_comments) { | 3073 if (FLAG_code_comments) { |
3074 CheckBuffer(); | 3074 CheckBuffer(); |
3075 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 3075 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
3076 } | 3076 } |
3077 } | 3077 } |
3078 | 3078 |
3079 | 3079 |
3080 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { | |
3081 if (FLAG_trace_deopt) { | |
3082 EnsureSpace ensure_space(this); | |
3083 RecordRelocInfo(RelocInfo::POSITION, raw_position); | |
3084 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); | |
3085 } | |
3086 } | |
3087 | |
3088 | |
3089 int Assembler::buffer_space() const { | 3080 int Assembler::buffer_space() const { |
3090 return reloc_info_writer.pos() - reinterpret_cast<byte*>(pc_); | 3081 return reloc_info_writer.pos() - reinterpret_cast<byte*>(pc_); |
3091 } | 3082 } |
3092 | 3083 |
3093 | 3084 |
3094 void Assembler::RecordJSReturn() { | 3085 void Assembler::RecordJSReturn() { |
3095 positions_recorder()->WriteRecordedPositions(); | 3086 positions_recorder()->WriteRecordedPositions(); |
3096 CheckBuffer(); | 3087 CheckBuffer(); |
3097 RecordRelocInfo(RelocInfo::JS_RETURN); | 3088 RecordRelocInfo(RelocInfo::JS_RETURN); |
3098 } | 3089 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3155 movz(scratch, (target_offset >> 16) & 0xFFFF, 16); | 3146 movz(scratch, (target_offset >> 16) & 0xFFFF, 16); |
3156 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3147 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
3157 DCHECK((target_offset >> 48) == 0); | 3148 DCHECK((target_offset >> 48) == 0); |
3158 add(rd, rd, scratch); | 3149 add(rd, rd, scratch); |
3159 } | 3150 } |
3160 | 3151 |
3161 | 3152 |
3162 } } // namespace v8::internal | 3153 } } // namespace v8::internal |
3163 | 3154 |
3164 #endif // V8_TARGET_ARCH_ARM64 | 3155 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |