OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "cpu-profiler.h" | 9 #include "cpu-profiler.h" |
10 #include "unicode.h" | 10 #include "unicode.h" |
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 if (global()) { | 969 if (global()) { |
970 __ Ldr(w0, MemOperand(frame_pointer(), kSuccessCounter)); | 970 __ Ldr(w0, MemOperand(frame_pointer(), kSuccessCounter)); |
971 } | 971 } |
972 } | 972 } |
973 | 973 |
974 __ Bind(&return_w0); | 974 __ Bind(&return_w0); |
975 | 975 |
976 // Set stack pointer back to first register to retain | 976 // Set stack pointer back to first register to retain |
977 ASSERT(csp.Is(__ StackPointer())); | 977 ASSERT(csp.Is(__ StackPointer())); |
978 __ Mov(csp, fp); | 978 __ Mov(csp, fp); |
979 __ AssertStackConsistency(); | |
980 | 979 |
981 // Restore registers. | 980 // Restore registers. |
982 __ PopCPURegList(registers_to_retain); | 981 __ PopCPURegList(registers_to_retain); |
983 | 982 |
984 __ Ret(); | 983 __ Ret(); |
985 | 984 |
986 Label exit_with_exception; | 985 Label exit_with_exception; |
987 // Registers x0 to x7 are used to store the first captures, they need to be | 986 // Registers x0 to x7 are used to store the first captures, they need to be |
988 // retained over calls to C++ code. | 987 // retained over calls to C++ code. |
989 CPURegList cached_registers(CPURegister::kRegister, kXRegSizeInBits, 0, 7); | 988 CPURegList cached_registers(CPURegister::kRegister, kXRegSizeInBits, 0, 7); |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1697 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); | 1696 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); |
1698 } | 1697 } |
1699 } | 1698 } |
1700 } | 1699 } |
1701 | 1700 |
1702 #endif // V8_INTERPRETED_REGEXP | 1701 #endif // V8_INTERPRETED_REGEXP |
1703 | 1702 |
1704 }} // namespace v8::internal | 1703 }} // namespace v8::internal |
1705 | 1704 |
1706 #endif // V8_TARGET_ARCH_ARM64 | 1705 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |