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

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

Issue 1266053002: PPC: [interpreter] Add Interpreter{Entry,Exit}Trampoline builtins. Port c5dd553cf3a44cd8c17958a5951… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/compiler/ppc/linkage-ppc.cc ('k') | src/ppc/assembler-ppc.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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 320 }
321 // Receiver is just before the parameters on the caller's stack. 321 // Receiver is just before the parameters on the caller's stack.
322 int num_parameters = info->scope()->num_parameters(); 322 int num_parameters = info->scope()->num_parameters();
323 int offset = num_parameters * kPointerSize; 323 int offset = num_parameters * kPointerSize;
324 __ addi(r5, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset)); 324 __ addi(r5, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset));
325 __ LoadSmiLiteral(r4, Smi::FromInt(num_parameters)); 325 __ LoadSmiLiteral(r4, Smi::FromInt(num_parameters));
326 __ Push(r6, r5, r4); 326 __ Push(r6, r5, r4);
327 327
328 // Arguments to ArgumentsAccessStub: 328 // Arguments to ArgumentsAccessStub:
329 // function, receiver address, parameter count. 329 // function, receiver address, parameter count.
330 // The stub will rewrite receiever and parameter count if the previous 330 // The stub will rewrite receiver and parameter count if the previous
331 // stack frame was an arguments adapter frame. 331 // stack frame was an arguments adapter frame.
332 ArgumentsAccessStub::Type type; 332 ArgumentsAccessStub::Type type;
333 if (is_strict(language_mode()) || !is_simple_parameter_list()) { 333 if (is_strict(language_mode()) || !is_simple_parameter_list()) {
334 type = ArgumentsAccessStub::NEW_STRICT; 334 type = ArgumentsAccessStub::NEW_STRICT;
335 } else if (function()->has_duplicate_parameters()) { 335 } else if (function()->has_duplicate_parameters()) {
336 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; 336 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW;
337 } else { 337 } else {
338 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; 338 type = ArgumentsAccessStub::NEW_SLOPPY_FAST;
339 } 339 }
340 ArgumentsAccessStub stub(isolate(), type); 340 ArgumentsAccessStub stub(isolate(), type);
(...skipping 5068 matching lines...) Expand 10 before | Expand all | Expand 10 after
5409 return ON_STACK_REPLACEMENT; 5409 return ON_STACK_REPLACEMENT;
5410 } 5410 }
5411 5411
5412 DCHECK(interrupt_address == 5412 DCHECK(interrupt_address ==
5413 isolate->builtins()->OsrAfterStackCheck()->entry()); 5413 isolate->builtins()->OsrAfterStackCheck()->entry());
5414 return OSR_AFTER_STACK_CHECK; 5414 return OSR_AFTER_STACK_CHECK;
5415 } 5415 }
5416 } // namespace internal 5416 } // namespace internal
5417 } // namespace v8 5417 } // namespace v8
5418 #endif // V8_TARGET_ARCH_PPC 5418 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/compiler/ppc/linkage-ppc.cc ('k') | src/ppc/assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698