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

Side by Side Diff: src/ppc/full-codegen-ppc.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/ppc/code-stubs-ppc.cc ('k') | src/runtime/runtime.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 7 #if V8_TARGET_ARCH_PPC
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 int num_parameters = info->scope()->num_parameters(); 266 int num_parameters = info->scope()->num_parameters();
267 int offset = num_parameters * kPointerSize; 267 int offset = num_parameters * kPointerSize;
268 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 268 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
269 --num_parameters; 269 --num_parameters;
270 ++rest_index; 270 ++rest_index;
271 } 271 }
272 272
273 __ addi(r6, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset)); 273 __ addi(r6, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset));
274 __ mov(r5, Operand(Smi::FromInt(num_parameters))); 274 __ mov(r5, Operand(Smi::FromInt(num_parameters)));
275 __ mov(r4, Operand(Smi::FromInt(rest_index))); 275 __ mov(r4, Operand(Smi::FromInt(rest_index)));
276 __ Push(r6, r5, r4); 276 __ mov(r7, Operand(Smi::FromInt(language_mode())));
277 __ Push(r6, r5, r4, r7);
277 278
278 RestParamAccessStub stub(isolate()); 279 RestParamAccessStub stub(isolate());
279 __ CallStub(&stub); 280 __ CallStub(&stub);
280 281
281 SetVar(rest_param, r3, r4, r5); 282 SetVar(rest_param, r3, r4, r5);
282 } 283 }
283 284
284 Variable* arguments = scope()->arguments(); 285 Variable* arguments = scope()->arguments();
285 if (arguments != NULL) { 286 if (arguments != NULL) {
286 // Function uses arguments object. 287 // Function uses arguments object.
(...skipping 5228 matching lines...) Expand 10 before | Expand all | Expand 10 after
5515 return ON_STACK_REPLACEMENT; 5516 return ON_STACK_REPLACEMENT;
5516 } 5517 }
5517 5518
5518 DCHECK(interrupt_address == 5519 DCHECK(interrupt_address ==
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 } // namespace v8::internal 5524 } // namespace v8::internal
5524 #endif // V8_TARGET_ARCH_PPC 5525 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698