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

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

Issue 1156823003: PPC: Refine '[strong] create strong array literals' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | no next file » | 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 Comment cmnt(masm_, "[ Allocate rest parameter array"); 264 Comment cmnt(masm_, "[ Allocate rest parameter array");
265 265
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 __ LoadSmiLiteral(r5, Smi::FromInt(num_parameters));
275 __ mov(r4, Operand(Smi::FromInt(rest_index))); 275 __ LoadSmiLiteral(r4, Smi::FromInt(rest_index));
276 __ mov(r7, Operand(Smi::FromInt(language_mode()))); 276 __ LoadSmiLiteral(r3, Smi::FromInt(language_mode()));
277 __ Push(r6, r5, r4, r7); 277 __ Push(r6, r5, r4, r3);
278 278
279 RestParamAccessStub stub(isolate()); 279 RestParamAccessStub stub(isolate());
280 __ CallStub(&stub); 280 __ CallStub(&stub);
281 281
282 SetVar(rest_param, r3, r4, r5); 282 SetVar(rest_param, r3, r4, r5);
283 } 283 }
284 284
285 Variable* arguments = scope()->arguments(); 285 Variable* arguments = scope()->arguments();
286 if (arguments != NULL) { 286 if (arguments != NULL) {
287 // Function uses arguments object. 287 // Function uses arguments object.
(...skipping 5229 matching lines...) Expand 10 before | Expand all | Expand 10 after
5517 return ON_STACK_REPLACEMENT; 5517 return ON_STACK_REPLACEMENT;
5518 } 5518 }
5519 5519
5520 DCHECK(interrupt_address == 5520 DCHECK(interrupt_address ==
5521 isolate->builtins()->OsrAfterStackCheck()->entry()); 5521 isolate->builtins()->OsrAfterStackCheck()->entry());
5522 return OSR_AFTER_STACK_CHECK; 5522 return OSR_AFTER_STACK_CHECK;
5523 } 5523 }
5524 } // namespace internal 5524 } // namespace internal
5525 } // namespace v8 5525 } // namespace v8
5526 #endif // V8_TARGET_ARCH_PPC 5526 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698