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

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

Issue 2415583002: PPC/s390: [stubs] Refactor the CallICStub to pass the number of arguments. (Closed)
Patch Set: Created 4 years, 2 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 | src/full-codegen/s390/full-codegen-s390.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 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 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 2369 matching lines...) Expand 10 before | Expand all | Expand 10 after
2380 SetCallPosition(expr, expr->tail_call_mode()); 2380 SetCallPosition(expr, expr->tail_call_mode());
2381 if (expr->tail_call_mode() == TailCallMode::kAllow) { 2381 if (expr->tail_call_mode() == TailCallMode::kAllow) {
2382 if (FLAG_trace) { 2382 if (FLAG_trace) {
2383 __ CallRuntime(Runtime::kTraceTailCall); 2383 __ CallRuntime(Runtime::kTraceTailCall);
2384 } 2384 }
2385 // Update profiling counters before the tail call since we will 2385 // Update profiling counters before the tail call since we will
2386 // not return to this function. 2386 // not return to this function.
2387 EmitProfilingCounterHandlingForReturnSequence(true); 2387 EmitProfilingCounterHandlingForReturnSequence(true);
2388 } 2388 }
2389 Handle<Code> code = 2389 Handle<Code> code =
2390 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) 2390 CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code();
2391 .code();
2392 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallFeedbackICSlot())); 2391 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallFeedbackICSlot()));
2393 __ LoadP(r4, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); 2392 __ LoadP(r4, MemOperand(sp, (arg_count + 1) * kPointerSize), r0);
2393 __ mov(r3, Operand(arg_count));
2394 __ Call(code, RelocInfo::CODE_TARGET); 2394 __ Call(code, RelocInfo::CODE_TARGET);
2395 OperandStackDepthDecrement(arg_count + 1); 2395 OperandStackDepthDecrement(arg_count + 1);
2396 2396
2397 RecordJSReturnSite(expr); 2397 RecordJSReturnSite(expr);
2398 RestoreContext(); 2398 RestoreContext();
2399 context()->DropAndPlug(1, r3); 2399 context()->DropAndPlug(1, r3);
2400 } 2400 }
2401 2401
2402 2402
2403 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { 2403 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) {
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
3655 3655
3656 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3656 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3657 3657
3658 DCHECK(interrupt_address == 3658 DCHECK(interrupt_address ==
3659 isolate->builtins()->OnStackReplacement()->entry()); 3659 isolate->builtins()->OnStackReplacement()->entry());
3660 return ON_STACK_REPLACEMENT; 3660 return ON_STACK_REPLACEMENT;
3661 } 3661 }
3662 } // namespace internal 3662 } // namespace internal
3663 } // namespace v8 3663 } // namespace v8
3664 #endif // V8_TARGET_ARCH_PPC 3664 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698