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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.cc

Issue 2645743002: [builtins] Port parameter and argument-related code stubs to CSA (Closed)
Patch Set: Remove stray change Created 3 years, 10 months 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
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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 Variable* arguments = info->scope()->arguments(); 266 Variable* arguments = info->scope()->arguments();
267 if (arguments != NULL) { 267 if (arguments != NULL) {
268 // Function uses arguments object. 268 // Function uses arguments object.
269 Comment cmnt(masm_, "[ Allocate arguments object"); 269 Comment cmnt(masm_, "[ Allocate arguments object");
270 if (!function_in_register_x1) { 270 if (!function_in_register_x1) {
271 // Load this again, if it's used by the local context below. 271 // Load this again, if it's used by the local context below.
272 __ Ldr(x1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 272 __ Ldr(x1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
273 } 273 }
274 if (is_strict(language_mode()) || !has_simple_parameters()) { 274 if (is_strict(language_mode()) || !has_simple_parameters()) {
275 FastNewStrictArgumentsStub stub(isolate()); 275 Callable callable = CodeFactory::FastNewStrictArguments(isolate());
276 __ CallStub(&stub); 276 __ Call(callable.code(), RelocInfo::CODE_TARGET);
277 RestoreContext();
277 } else if (literal()->has_duplicate_parameters()) { 278 } else if (literal()->has_duplicate_parameters()) {
278 __ Push(x1); 279 __ Push(x1);
279 __ CallRuntime(Runtime::kNewSloppyArguments_Generic); 280 __ CallRuntime(Runtime::kNewSloppyArguments_Generic);
280 } else { 281 } else {
281 FastNewSloppyArgumentsStub stub(isolate()); 282 Callable callable = CodeFactory::FastNewSloppyArguments(isolate());
282 __ CallStub(&stub); 283 __ Call(callable.code(), RelocInfo::CODE_TARGET);
284 RestoreContext();
283 } 285 }
284 286
285 SetVar(arguments, x0, x1, x2); 287 SetVar(arguments, x0, x1, x2);
286 } 288 }
287 289
288 if (FLAG_trace) { 290 if (FLAG_trace) {
289 __ CallRuntime(Runtime::kTraceEnter); 291 __ CallRuntime(Runtime::kTraceEnter);
290 } 292 }
291 293
292 // Visit the declarations and body. 294 // Visit the declarations and body.
(...skipping 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after
2909 } 2911 }
2910 2912
2911 return INTERRUPT; 2913 return INTERRUPT;
2912 } 2914 }
2913 2915
2914 2916
2915 } // namespace internal 2917 } // namespace internal
2916 } // namespace v8 2918 } // namespace v8
2917 2919
2918 #endif // V8_TARGET_ARCH_ARM64 2920 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698