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

Side by Side Diff: src/builtins/ia32/builtins-ia32.cc

Issue 2372113004: [turbofan] JSGenericLowering mostly uses builtins instead of code stubs now (Closed)
Patch Set: Ross' comments 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/builtins/builtins-string.cc ('k') | src/builtins/mips/builtins-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/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 { 2478 {
2479 // Convert receiver using ToObject. 2479 // Convert receiver using ToObject.
2480 // TODO(bmeurer): Inline the allocation here to avoid building the frame 2480 // TODO(bmeurer): Inline the allocation here to avoid building the frame
2481 // in the fast case? (fall back to AllocateInNewSpace?) 2481 // in the fast case? (fall back to AllocateInNewSpace?)
2482 FrameScope scope(masm, StackFrame::INTERNAL); 2482 FrameScope scope(masm, StackFrame::INTERNAL);
2483 __ SmiTag(eax); 2483 __ SmiTag(eax);
2484 __ Push(eax); 2484 __ Push(eax);
2485 __ Push(edi); 2485 __ Push(edi);
2486 __ mov(eax, ecx); 2486 __ mov(eax, ecx);
2487 __ Push(esi); 2487 __ Push(esi);
2488 ToObjectStub stub(masm->isolate()); 2488 __ Call(masm->isolate()->builtins()->ToObject(),
2489 __ CallStub(&stub); 2489 RelocInfo::CODE_TARGET);
2490 __ Pop(esi); 2490 __ Pop(esi);
2491 __ mov(ecx, eax); 2491 __ mov(ecx, eax);
2492 __ Pop(edi); 2492 __ Pop(edi);
2493 __ Pop(eax); 2493 __ Pop(eax);
2494 __ SmiUntag(eax); 2494 __ SmiUntag(eax);
2495 } 2495 }
2496 __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); 2496 __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset));
2497 __ bind(&convert_receiver); 2497 __ bind(&convert_receiver);
2498 } 2498 }
2499 __ mov(Operand(esp, eax, times_pointer_size, kPointerSize), ecx); 2499 __ mov(Operand(esp, eax, times_pointer_size, kPointerSize), ecx);
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
3142 3142
3143 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3143 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3144 Generate_OnStackReplacementHelper(masm, true); 3144 Generate_OnStackReplacementHelper(masm, true);
3145 } 3145 }
3146 3146
3147 #undef __ 3147 #undef __
3148 } // namespace internal 3148 } // namespace internal
3149 } // namespace v8 3149 } // namespace v8
3150 3150
3151 #endif // V8_TARGET_ARCH_IA32 3151 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/builtins/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698