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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 __ LoadGlobalFunction(Context::STRING_FUNCTION_INDEX, x10); | 149 __ LoadGlobalFunction(Context::STRING_FUNCTION_INDEX, x10); |
150 __ Cmp(function, x10); | 150 __ Cmp(function, x10); |
151 __ Assert(eq, kUnexpectedStringFunction); | 151 __ Assert(eq, kUnexpectedStringFunction); |
152 } | 152 } |
153 | 153 |
154 // Load the first arguments in x0 and get rid of the rest. | 154 // Load the first arguments in x0 and get rid of the rest. |
155 Label no_arguments; | 155 Label no_arguments; |
156 __ Cbz(argc, &no_arguments); | 156 __ Cbz(argc, &no_arguments); |
157 // First args = sp[(argc - 1) * 8]. | 157 // First args = sp[(argc - 1) * 8]. |
158 __ Sub(argc, argc, 1); | 158 __ Sub(argc, argc, 1); |
159 __ Claim(argc, kXRegSize); | 159 __ Drop(argc, kXRegSize); |
160 // jssp now point to args[0], load and drop args[0] + receiver. | 160 // jssp now point to args[0], load and drop args[0] + receiver. |
161 Register arg = argc; | 161 Register arg = argc; |
162 __ Ldr(arg, MemOperand(jssp, 2 * kPointerSize, PostIndex)); | 162 __ Ldr(arg, MemOperand(jssp, 2 * kPointerSize, PostIndex)); |
163 argc = NoReg; | 163 argc = NoReg; |
164 | 164 |
165 Register argument = x2; | 165 Register argument = x2; |
166 Label not_cached, argument_is_string; | 166 Label not_cached, argument_is_string; |
167 __ LookupNumberStringCache(arg, // Input. | 167 __ LookupNumberStringCache(arg, // Input. |
168 argument, // Result. | 168 argument, // Result. |
169 x10, // Scratch. | 169 x10, // Scratch. |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 __ Unreachable(); | 1555 __ Unreachable(); |
1556 } | 1556 } |
1557 } | 1557 } |
1558 | 1558 |
1559 | 1559 |
1560 #undef __ | 1560 #undef __ |
1561 | 1561 |
1562 } } // namespace v8::internal | 1562 } } // namespace v8::internal |
1563 | 1563 |
1564 #endif // V8_TARGET_ARCH_ARM | 1564 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |