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

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

Issue 1152093003: [strong] create strong array literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback Created 5 years, 6 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/mips/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 int offset = num_parameters * kPointerSize; 271 int offset = num_parameters * kPointerSize;
272 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 272 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
273 --num_parameters; 273 --num_parameters;
274 ++rest_index; 274 ++rest_index;
275 } 275 }
276 276
277 __ Addu(a3, fp, 277 __ Addu(a3, fp,
278 Operand(StandardFrameConstants::kCallerSPOffset + offset)); 278 Operand(StandardFrameConstants::kCallerSPOffset + offset));
279 __ li(a2, Operand(Smi::FromInt(num_parameters))); 279 __ li(a2, Operand(Smi::FromInt(num_parameters)));
280 __ li(a1, Operand(Smi::FromInt(rest_index))); 280 __ li(a1, Operand(Smi::FromInt(rest_index)));
281 __ Push(a3, a2, a1); 281 __ li(a0, Operand(Smi::FromInt(language_mode())));
282 __ Push(a3, a2, a1, a0);
282 283
283 RestParamAccessStub stub(isolate()); 284 RestParamAccessStub stub(isolate());
284 __ CallStub(&stub); 285 __ CallStub(&stub);
285 286
286 SetVar(rest_param, v0, a1, a2); 287 SetVar(rest_param, v0, a1, a2);
287 } 288 }
288 289
289 Variable* arguments = scope()->arguments(); 290 Variable* arguments = scope()->arguments();
290 if (arguments != NULL) { 291 if (arguments != NULL) {
291 // Function uses arguments object. 292 // Function uses arguments object.
(...skipping 5225 matching lines...) Expand 10 before | Expand all | Expand 10 after
5517 Assembler::target_address_at(pc_immediate_load_address)) == 5518 Assembler::target_address_at(pc_immediate_load_address)) ==
5518 reinterpret_cast<uint32_t>( 5519 reinterpret_cast<uint32_t>(
5519 isolate->builtins()->OsrAfterStackCheck()->entry())); 5520 isolate->builtins()->OsrAfterStackCheck()->entry()));
5520 return OSR_AFTER_STACK_CHECK; 5521 return OSR_AFTER_STACK_CHECK;
5521 } 5522 }
5522 5523
5523 5524
5524 } } // namespace v8::internal 5525 } } // namespace v8::internal
5525 5526
5526 #endif // V8_TARGET_ARCH_MIPS 5527 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698