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(true); |
979 | 980 |
980 // Restore registers. | 981 // Restore registers. |
981 __ PopCPURegList(registers_to_retain); | 982 __ PopCPURegList(registers_to_retain); |
982 | 983 |
983 __ Ret(); | 984 __ Ret(); |
984 | 985 |
985 Label exit_with_exception; | 986 Label exit_with_exception; |
986 // Registers x0 to x7 are used to store the first captures, they need to be | 987 // Registers x0 to x7 are used to store the first captures, they need to be |
987 // retained over calls to C++ code. | 988 // retained over calls to C++ code. |
988 CPURegList cached_registers(CPURegister::kRegister, kXRegSizeInBits, 0, 7); | 989 CPURegList cached_registers(CPURegister::kRegister, kXRegSizeInBits, 0, 7); |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1696 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); | 1697 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); |
1697 } | 1698 } |
1698 } | 1699 } |
1699 } | 1700 } |
1700 | 1701 |
1701 #endif // V8_INTERPRETED_REGEXP | 1702 #endif // V8_INTERPRETED_REGEXP |
1702 | 1703 |
1703 }} // namespace v8::internal | 1704 }} // namespace v8::internal |
1704 | 1705 |
1705 #endif // V8_TARGET_ARCH_ARM64 | 1706 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |