OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 Pop(w10); | 1121 Pop(w10); |
1122 StoreRegister(register_index, w10); | 1122 StoreRegister(register_index, w10); |
1123 } | 1123 } |
1124 | 1124 |
1125 | 1125 |
1126 void RegExpMacroAssemblerARM64::PushBacktrack(Label* label) { | 1126 void RegExpMacroAssemblerARM64::PushBacktrack(Label* label) { |
1127 if (label->is_bound()) { | 1127 if (label->is_bound()) { |
1128 int target = label->pos(); | 1128 int target = label->pos(); |
1129 __ Mov(w10, target + Code::kHeaderSize - kHeapObjectTag); | 1129 __ Mov(w10, target + Code::kHeaderSize - kHeapObjectTag); |
1130 } else { | 1130 } else { |
1131 __ Adr(x10, label); | 1131 __ Adr(x10, label, MacroAssembler::kAdrFar); |
1132 __ Sub(x10, x10, code_pointer()); | 1132 __ Sub(x10, x10, code_pointer()); |
1133 if (masm_->emit_debug_code()) { | 1133 if (masm_->emit_debug_code()) { |
1134 __ Cmp(x10, kWRegMask); | 1134 __ Cmp(x10, kWRegMask); |
1135 // The code offset has to fit in a W register. | 1135 // The code offset has to fit in a W register. |
1136 __ Check(ls, kOffsetOutOfRange); | 1136 __ Check(ls, kOffsetOutOfRange); |
1137 } | 1137 } |
1138 } | 1138 } |
1139 Push(w10); | 1139 Push(w10); |
1140 CheckStackLimit(); | 1140 CheckStackLimit(); |
1141 } | 1141 } |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1719 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); | 1719 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); |
1720 } | 1720 } |
1721 } | 1721 } |
1722 } | 1722 } |
1723 | 1723 |
1724 #endif // V8_INTERPRETED_REGEXP | 1724 #endif // V8_INTERPRETED_REGEXP |
1725 | 1725 |
1726 }} // namespace v8::internal | 1726 }} // namespace v8::internal |
1727 | 1727 |
1728 #endif // V8_TARGET_ARCH_ARM64 | 1728 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |