| 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 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 void RegExpMacroAssemblerA64::Pop(Register target) { | 1551 void RegExpMacroAssemblerA64::Pop(Register target) { |
| 1552 ASSERT(target.Is32Bits()); | 1552 ASSERT(target.Is32Bits()); |
| 1553 ASSERT(!target.is(backtrack_stackpointer())); | 1553 ASSERT(!target.is(backtrack_stackpointer())); |
| 1554 __ Ldr(target, | 1554 __ Ldr(target, |
| 1555 MemOperand(backtrack_stackpointer(), kWRegSizeInBytes, PostIndex)); | 1555 MemOperand(backtrack_stackpointer(), kWRegSizeInBytes, PostIndex)); |
| 1556 } | 1556 } |
| 1557 | 1557 |
| 1558 | 1558 |
| 1559 Register RegExpMacroAssemblerA64::GetCachedRegister(int register_index) { | 1559 Register RegExpMacroAssemblerA64::GetCachedRegister(int register_index) { |
| 1560 ASSERT(register_index < kNumCachedRegisters); | 1560 ASSERT(register_index < kNumCachedRegisters); |
| 1561 return Register(register_index / 2, kXRegSize); | 1561 return Register::Create(register_index / 2, kXRegSize); |
| 1562 } | 1562 } |
| 1563 | 1563 |
| 1564 | 1564 |
| 1565 Register RegExpMacroAssemblerA64::GetRegister(int register_index, | 1565 Register RegExpMacroAssemblerA64::GetRegister(int register_index, |
| 1566 Register maybe_result) { | 1566 Register maybe_result) { |
| 1567 ASSERT(maybe_result.Is32Bits()); | 1567 ASSERT(maybe_result.Is32Bits()); |
| 1568 ASSERT(register_index >= 0); | 1568 ASSERT(register_index >= 0); |
| 1569 if (num_registers_ <= register_index) { | 1569 if (num_registers_ <= register_index) { |
| 1570 num_registers_ = register_index + 1; | 1570 num_registers_ = register_index + 1; |
| 1571 } | 1571 } |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1721 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); | 1721 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); |
| 1722 } | 1722 } |
| 1723 } | 1723 } |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 #endif // V8_INTERPRETED_REGEXP | 1726 #endif // V8_INTERPRETED_REGEXP |
| 1727 | 1727 |
| 1728 }} // namespace v8::internal | 1728 }} // namespace v8::internal |
| 1729 | 1729 |
| 1730 #endif // V8_TARGET_ARCH_A64 | 1730 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |