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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 __ Daddu(a2, fp, 326 __ Daddu(a2, fp,
327 Operand(StandardFrameConstants::kCallerSPOffset + offset)); 327 Operand(StandardFrameConstants::kCallerSPOffset + offset));
328 __ li(a1, Operand(Smi::FromInt(num_parameters))); 328 __ li(a1, Operand(Smi::FromInt(num_parameters)));
329 __ Push(a3, a2, a1); 329 __ Push(a3, a2, a1);
330 330
331 // Arguments to ArgumentsAccessStub: 331 // Arguments to ArgumentsAccessStub:
332 // function, receiver address, parameter count. 332 // function, receiver address, parameter count.
333 // The stub will rewrite receiever and parameter count if the previous 333 // The stub will rewrite receiever and parameter count if the previous
334 // stack frame was an arguments adapter frame. 334 // stack frame was an arguments adapter frame.
335 ArgumentsAccessStub::Type type; 335 ArgumentsAccessStub::Type type;
336 if (is_strict(language_mode()) || !is_simple_parameter_list()) { 336 if (is_strict(language_mode()) || !has_simple_parameters()) {
337 type = ArgumentsAccessStub::NEW_STRICT; 337 type = ArgumentsAccessStub::NEW_STRICT;
338 } else if (function()->has_duplicate_parameters()) { 338 } else if (function()->has_duplicate_parameters()) {
339 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; 339 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW;
340 } else { 340 } else {
341 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; 341 type = ArgumentsAccessStub::NEW_SLOPPY_FAST;
342 } 342 }
343 ArgumentsAccessStub stub(isolate(), type); 343 ArgumentsAccessStub stub(isolate(), type);
344 __ CallStub(&stub); 344 __ CallStub(&stub);
345 345
346 SetVar(arguments, v0, a1, a2); 346 SetVar(arguments, v0, a1, a2);
(...skipping 5087 matching lines...) Expand 10 before | Expand all | Expand 10 after
5434 reinterpret_cast<uint64_t>( 5434 reinterpret_cast<uint64_t>(
5435 isolate->builtins()->OsrAfterStackCheck()->entry())); 5435 isolate->builtins()->OsrAfterStackCheck()->entry()));
5436 return OSR_AFTER_STACK_CHECK; 5436 return OSR_AFTER_STACK_CHECK;
5437 } 5437 }
5438 5438
5439 5439
5440 } // namespace internal 5440 } // namespace internal
5441 } // namespace v8 5441 } // namespace v8
5442 5442
5443 #endif // V8_TARGET_ARCH_MIPS64 5443 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698