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

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

Issue 567433002: Eliminate Turbofan shims with CodeFactory (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/full-codegen-ia32.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/code-factory.h"
9 #include "src/codegen.h" 10 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 11 #include "src/deoptimizer.h"
11 #include "src/full-codegen.h" 12 #include "src/full-codegen.h"
12 13
13 namespace v8 { 14 namespace v8 {
14 namespace internal { 15 namespace internal {
15 16
16 17
17 #define __ ACCESS_MASM(masm) 18 #define __ ACCESS_MASM(masm)
18 19
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 __ mov(key, Operand(ebp, kIndexOffset)); 1000 __ mov(key, Operand(ebp, kIndexOffset));
1000 __ jmp(&entry); 1001 __ jmp(&entry);
1001 __ bind(&loop); 1002 __ bind(&loop);
1002 __ mov(receiver, Operand(ebp, kArgumentsOffset)); // load arguments 1003 __ mov(receiver, Operand(ebp, kArgumentsOffset)); // load arguments
1003 1004
1004 // Use inline caching to speed up access to arguments. 1005 // Use inline caching to speed up access to arguments.
1005 if (FLAG_vector_ics) { 1006 if (FLAG_vector_ics) {
1006 __ mov(VectorLoadICDescriptor::SlotRegister(), 1007 __ mov(VectorLoadICDescriptor::SlotRegister(),
1007 Immediate(Smi::FromInt(0))); 1008 Immediate(Smi::FromInt(0)));
1008 } 1009 }
1009 Handle<Code> ic = masm->isolate()->builtins()->KeyedLoadIC_Initialize(); 1010 Handle<Code> ic = CodeFactory::KeyedLoadIC(masm->isolate()).code();
1010 __ call(ic, RelocInfo::CODE_TARGET); 1011 __ call(ic, RelocInfo::CODE_TARGET);
1011 // It is important that we do not have a test instruction after the 1012 // It is important that we do not have a test instruction after the
1012 // call. A test instruction after the call is used to indicate that 1013 // call. A test instruction after the call is used to indicate that
1013 // we have generated an inline version of the keyed load. In this 1014 // we have generated an inline version of the keyed load. In this
1014 // case, we know that we are not generating a test instruction next. 1015 // case, we know that we are not generating a test instruction next.
1015 1016
1016 // Push the nth argument. 1017 // Push the nth argument.
1017 __ push(eax); 1018 __ push(eax);
1018 1019
1019 // Update the index on the stack and in register key. 1020 // Update the index on the stack and in register key.
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 1449
1449 __ bind(&ok); 1450 __ bind(&ok);
1450 __ ret(0); 1451 __ ret(0);
1451 } 1452 }
1452 1453
1453 #undef __ 1454 #undef __
1454 } 1455 }
1455 } // namespace v8::internal 1456 } // namespace v8::internal
1456 1457
1457 #endif // V8_TARGET_ARCH_IA32 1458 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698