Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: src/arm64/builtins-arm64.cc

Issue 672623003: ARM64: Fix stack manipulation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-425585.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-425585.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698