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

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

Issue 1278783002: [es6] Use strict arguments objects for destructured parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Doh Created 5 years, 4 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/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 int offset = num_parameters * kPointerSize; 317 int offset = num_parameters * kPointerSize;
318 __ Add(x2, fp, StandardFrameConstants::kCallerSPOffset + offset); 318 __ Add(x2, fp, StandardFrameConstants::kCallerSPOffset + offset);
319 __ Mov(x1, Smi::FromInt(num_parameters)); 319 __ Mov(x1, Smi::FromInt(num_parameters));
320 __ Push(x3, x2, x1); 320 __ Push(x3, x2, x1);
321 321
322 // Arguments to ArgumentsAccessStub: 322 // Arguments to ArgumentsAccessStub:
323 // function, receiver address, parameter count. 323 // function, receiver address, parameter count.
324 // The stub will rewrite receiver and parameter count if the previous 324 // The stub will rewrite receiver and parameter count if the previous
325 // stack frame was an arguments adapter frame. 325 // stack frame was an arguments adapter frame.
326 ArgumentsAccessStub::Type type; 326 ArgumentsAccessStub::Type type;
327 if (is_strict(language_mode()) || !is_simple_parameter_list()) { 327 if (is_strict(language_mode()) || !has_simple_parameters()) {
328 type = ArgumentsAccessStub::NEW_STRICT; 328 type = ArgumentsAccessStub::NEW_STRICT;
329 } else if (function()->has_duplicate_parameters()) { 329 } else if (function()->has_duplicate_parameters()) {
330 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; 330 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW;
331 } else { 331 } else {
332 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; 332 type = ArgumentsAccessStub::NEW_SLOPPY_FAST;
333 } 333 }
334 ArgumentsAccessStub stub(isolate(), type); 334 ArgumentsAccessStub stub(isolate(), type);
335 __ CallStub(&stub); 335 __ CallStub(&stub);
336 336
337 SetVar(arguments, x0, x1, x2); 337 SetVar(arguments, x0, x1, x2);
(...skipping 5122 matching lines...) Expand 10 before | Expand all | Expand 10 after
5460 } 5460 }
5461 5461
5462 return INTERRUPT; 5462 return INTERRUPT;
5463 } 5463 }
5464 5464
5465 5465
5466 } // namespace internal 5466 } // namespace internal
5467 } // namespace v8 5467 } // namespace v8
5468 5468
5469 #endif // V8_TARGET_ARCH_ARM64 5469 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698