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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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
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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 __ Addu(a2, fp, 330 __ Addu(a2, fp,
331 Operand(StandardFrameConstants::kCallerSPOffset + offset)); 331 Operand(StandardFrameConstants::kCallerSPOffset + offset));
332 __ li(a1, Operand(Smi::FromInt(num_parameters))); 332 __ li(a1, Operand(Smi::FromInt(num_parameters)));
333 __ Push(a3, a2, a1); 333 __ Push(a3, a2, a1);
334 334
335 // Arguments to ArgumentsAccessStub: 335 // Arguments to ArgumentsAccessStub:
336 // function, receiver address, parameter count. 336 // function, receiver address, parameter count.
337 // The stub will rewrite receiever and parameter count if the previous 337 // The stub will rewrite receiever and parameter count if the previous
338 // stack frame was an arguments adapter frame. 338 // stack frame was an arguments adapter frame.
339 ArgumentsAccessStub::Type type; 339 ArgumentsAccessStub::Type type;
340 if (is_strict(language_mode()) || !is_simple_parameter_list()) { 340 if (is_strict(language_mode()) || !has_simple_parameters()) {
341 type = ArgumentsAccessStub::NEW_STRICT; 341 type = ArgumentsAccessStub::NEW_STRICT;
342 } else if (function()->has_duplicate_parameters()) { 342 } else if (function()->has_duplicate_parameters()) {
343 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; 343 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW;
344 } else { 344 } else {
345 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; 345 type = ArgumentsAccessStub::NEW_SLOPPY_FAST;
346 } 346 }
347 ArgumentsAccessStub stub(isolate(), type); 347 ArgumentsAccessStub stub(isolate(), type);
348 __ CallStub(&stub); 348 __ CallStub(&stub);
349 349
350 SetVar(arguments, v0, a1, a2); 350 SetVar(arguments, v0, a1, a2);
(...skipping 5077 matching lines...) Expand 10 before | Expand all | Expand 10 after
5428 reinterpret_cast<uint32_t>( 5428 reinterpret_cast<uint32_t>(
5429 isolate->builtins()->OsrAfterStackCheck()->entry())); 5429 isolate->builtins()->OsrAfterStackCheck()->entry()));
5430 return OSR_AFTER_STACK_CHECK; 5430 return OSR_AFTER_STACK_CHECK;
5431 } 5431 }
5432 5432
5433 5433
5434 } // namespace internal 5434 } // namespace internal
5435 } // namespace v8 5435 } // namespace v8
5436 5436
5437 #endif // V8_TARGET_ARCH_MIPS 5437 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698