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

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

Issue 1151853003: [strong] create strong array literals Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix a test Created 5 years, 7 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
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/builtins.cc » ('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/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 int num_parameters = info->scope()->num_parameters(); 257 int num_parameters = info->scope()->num_parameters();
258 int offset = num_parameters * kPointerSize; 258 int offset = num_parameters * kPointerSize;
259 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 259 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
260 --num_parameters; 260 --num_parameters;
261 ++rest_index; 261 ++rest_index;
262 } 262 }
263 263
264 __ Add(x3, fp, StandardFrameConstants::kCallerSPOffset + offset); 264 __ Add(x3, fp, StandardFrameConstants::kCallerSPOffset + offset);
265 __ Mov(x2, Smi::FromInt(num_parameters)); 265 __ Mov(x2, Smi::FromInt(num_parameters));
266 __ Mov(x1, Smi::FromInt(rest_index)); 266 __ Mov(x1, Smi::FromInt(rest_index));
267 __ Push(x3, x2, x1); 267 __ Mov(x0, Smi::FromInt(language_mode()));
268 __ Push(x3, x2, x1, x0);
268 269
269 RestParamAccessStub stub(isolate()); 270 RestParamAccessStub stub(isolate());
270 __ CallStub(&stub); 271 __ CallStub(&stub);
271 272
272 SetVar(rest_param, x0, x1, x2); 273 SetVar(rest_param, x0, x1, x2);
273 } 274 }
274 275
275 Variable* arguments = scope()->arguments(); 276 Variable* arguments = scope()->arguments();
276 if (arguments != NULL) { 277 if (arguments != NULL) {
277 // Function uses arguments object. 278 // Function uses arguments object.
(...skipping 5203 matching lines...) Expand 10 before | Expand all | Expand 10 after
5481 } 5482 }
5482 } 5483 }
5483 5484
5484 return INTERRUPT; 5485 return INTERRUPT;
5485 } 5486 }
5486 5487
5487 5488
5488 } } // namespace v8::internal 5489 } } // namespace v8::internal
5489 5490
5490 #endif // V8_TARGET_ARCH_ARM64 5491 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698