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

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

Issue 398053002: Introduce FLAG_vector_ics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 5 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/ic.h ('k') | src/x64/full-codegen-x64.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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 // Copy all arguments from the array to the stack. 1067 // Copy all arguments from the array to the stack.
1068 Label entry, loop; 1068 Label entry, loop;
1069 Register receiver = LoadIC::ReceiverRegister(); 1069 Register receiver = LoadIC::ReceiverRegister();
1070 Register key = LoadIC::NameRegister(); 1070 Register key = LoadIC::NameRegister();
1071 __ movp(key, Operand(rbp, kIndexOffset)); 1071 __ movp(key, Operand(rbp, kIndexOffset));
1072 __ jmp(&entry); 1072 __ jmp(&entry);
1073 __ bind(&loop); 1073 __ bind(&loop);
1074 __ movp(receiver, Operand(rbp, kArgumentsOffset)); // load arguments 1074 __ movp(receiver, Operand(rbp, kArgumentsOffset)); // load arguments
1075 1075
1076 // Use inline caching to speed up access to arguments. 1076 // Use inline caching to speed up access to arguments.
1077 if (FLAG_vector_ics) {
1078 __ Move(LoadIC::SlotRegister(), Smi::FromInt(0));
1079 }
1077 Handle<Code> ic = 1080 Handle<Code> ic =
1078 masm->isolate()->builtins()->KeyedLoadIC_Initialize(); 1081 masm->isolate()->builtins()->KeyedLoadIC_Initialize();
1079 __ Call(ic, RelocInfo::CODE_TARGET); 1082 __ Call(ic, RelocInfo::CODE_TARGET);
1080 // It is important that we do not have a test instruction after the 1083 // It is important that we do not have a test instruction after the
1081 // call. A test instruction after the call is used to indicate that 1084 // call. A test instruction after the call is used to indicate that
1082 // we have generated an inline version of the keyed load. In this 1085 // we have generated an inline version of the keyed load. In this
1083 // case, we know that we are not generating a test instruction next. 1086 // case, we know that we are not generating a test instruction next.
1084 1087
1085 // Push the nth argument. 1088 // Push the nth argument.
1086 __ Push(rax); 1089 __ Push(rax);
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 __ bind(&ok); 1518 __ bind(&ok);
1516 __ ret(0); 1519 __ ret(0);
1517 } 1520 }
1518 1521
1519 1522
1520 #undef __ 1523 #undef __
1521 1524
1522 } } // namespace v8::internal 1525 } } // namespace v8::internal
1523 1526
1524 #endif // V8_TARGET_ARCH_X64 1527 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698