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

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

Issue 2412453005: [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 | « src/crankshaft/hydrogen.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.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 #if V8_TARGET_ARCH_ARM 5 #if V8_TARGET_ARCH_ARM
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 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after
2376 SetCallPosition(expr, expr->tail_call_mode()); 2376 SetCallPosition(expr, expr->tail_call_mode());
2377 if (expr->tail_call_mode() == TailCallMode::kAllow) { 2377 if (expr->tail_call_mode() == TailCallMode::kAllow) {
2378 if (FLAG_trace) { 2378 if (FLAG_trace) {
2379 __ CallRuntime(Runtime::kTraceTailCall); 2379 __ CallRuntime(Runtime::kTraceTailCall);
2380 } 2380 }
2381 // Update profiling counters before the tail call since we will 2381 // Update profiling counters before the tail call since we will
2382 // not return to this function. 2382 // not return to this function.
2383 EmitProfilingCounterHandlingForReturnSequence(true); 2383 EmitProfilingCounterHandlingForReturnSequence(true);
2384 } 2384 }
2385 Handle<Code> code = 2385 Handle<Code> code =
2386 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) 2386 CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code();
2387 .code();
2388 __ mov(r3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); 2387 __ mov(r3, Operand(SmiFromSlot(expr->CallFeedbackICSlot())));
2389 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2388 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize));
2389 __ mov(r0, Operand(arg_count));
2390 __ Call(code, RelocInfo::CODE_TARGET); 2390 __ Call(code, RelocInfo::CODE_TARGET);
2391 OperandStackDepthDecrement(arg_count + 1); 2391 OperandStackDepthDecrement(arg_count + 1);
2392 2392
2393 RecordJSReturnSite(expr); 2393 RecordJSReturnSite(expr);
2394 RestoreContext(); 2394 RestoreContext();
2395 context()->DropAndPlug(1, r0); 2395 context()->DropAndPlug(1, r0);
2396 } 2396 }
2397 2397
2398 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { 2398 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) {
2399 int arg_count = expr->arguments()->length(); 2399 int arg_count = expr->arguments()->length();
(...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after
3726 DCHECK(interrupt_address == 3726 DCHECK(interrupt_address ==
3727 isolate->builtins()->OnStackReplacement()->entry()); 3727 isolate->builtins()->OnStackReplacement()->entry());
3728 return ON_STACK_REPLACEMENT; 3728 return ON_STACK_REPLACEMENT;
3729 } 3729 }
3730 3730
3731 3731
3732 } // namespace internal 3732 } // namespace internal
3733 } // namespace v8 3733 } // namespace v8
3734 3734
3735 #endif // V8_TARGET_ARCH_ARM 3735 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698