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

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

Issue 2670843002: [stubs] Also port the CallICStub to CSA. (Closed)
Patch Set: Introduce FullCodeGenerator::IntFromSlot. Created 3 years, 10 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/full-codegen/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 if (FLAG_trace) { 1809 if (FLAG_trace) {
1810 __ CallRuntime(Runtime::kTraceTailCall); 1810 __ CallRuntime(Runtime::kTraceTailCall);
1811 } 1811 }
1812 // Update profiling counters before the tail call since we will 1812 // Update profiling counters before the tail call since we will
1813 // not return to this function. 1813 // not return to this function.
1814 EmitProfilingCounterHandlingForReturnSequence(true); 1814 EmitProfilingCounterHandlingForReturnSequence(true);
1815 } 1815 }
1816 Handle<Code> code = 1816 Handle<Code> code =
1817 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) 1817 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode())
1818 .code(); 1818 .code();
1819 __ Move(edx, Immediate(SmiFromSlot(expr->CallFeedbackICSlot()))); 1819 __ Move(edx, Immediate(IntFromSlot(expr->CallFeedbackICSlot())));
1820 __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize)); 1820 __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize));
1821 __ Move(eax, Immediate(arg_count)); 1821 __ Move(eax, Immediate(arg_count));
1822 CallIC(code); 1822 CallIC(code);
1823 OperandStackDepthDecrement(arg_count + 1); 1823 OperandStackDepthDecrement(arg_count + 1);
1824 1824
1825 RecordJSReturnSite(expr); 1825 RecordJSReturnSite(expr);
1826 RestoreContext(); 1826 RestoreContext();
1827 context()->DropAndPlug(1, eax); 1827 context()->DropAndPlug(1, eax);
1828 } 1828 }
1829 1829
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 isolate->builtins()->OnStackReplacement()->entry(), 2780 isolate->builtins()->OnStackReplacement()->entry(),
2781 Assembler::target_address_at(call_target_address, unoptimized_code)); 2781 Assembler::target_address_at(call_target_address, unoptimized_code));
2782 return ON_STACK_REPLACEMENT; 2782 return ON_STACK_REPLACEMENT;
2783 } 2783 }
2784 2784
2785 2785
2786 } // namespace internal 2786 } // namespace internal
2787 } // namespace v8 2787 } // namespace v8
2788 2788
2789 #endif // V8_TARGET_ARCH_IA32 2789 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698