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

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

Issue 638523003: Updates to maintain flag --vector-ics (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/x64/debug-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/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 Label entry, loop; 1068 Label entry, loop;
1069 Register receiver = LoadDescriptor::ReceiverRegister(); 1069 Register receiver = LoadDescriptor::ReceiverRegister();
1070 Register key = LoadDescriptor::NameRegister(); 1070 Register key = LoadDescriptor::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) { 1077 if (FLAG_vector_ics) {
1078 __ Move(VectorLoadICDescriptor::SlotRegister(), Smi::FromInt(0)); 1078 // TODO(mvstanton): Vector-based ics need additional infrastructure to
1079 // be embedded here. For now, just call the runtime.
1080 __ Push(receiver);
1081 __ Push(key);
1082 __ CallRuntime(Runtime::kGetProperty, 2);
1083 } else {
1084 Handle<Code> ic = CodeFactory::KeyedLoadIC(masm->isolate()).code();
1085 __ Call(ic, RelocInfo::CODE_TARGET);
1086 // It is important that we do not have a test instruction after the
1087 // call. A test instruction after the call is used to indicate that
1088 // we have generated an inline version of the keyed load. In this
1089 // case, we know that we are not generating a test instruction next.
1079 } 1090 }
1080 Handle<Code> ic = CodeFactory::KeyedLoadIC(masm->isolate()).code();
1081 __ Call(ic, RelocInfo::CODE_TARGET);
1082 // It is important that we do not have a test instruction after the
1083 // call. A test instruction after the call is used to indicate that
1084 // we have generated an inline version of the keyed load. In this
1085 // case, we know that we are not generating a test instruction next.
1086 1091
1087 // Push the nth argument. 1092 // Push the nth argument.
1088 __ Push(rax); 1093 __ Push(rax);
1089 1094
1090 // Update the index on the stack and in register key. 1095 // Update the index on the stack and in register key.
1091 __ movp(key, Operand(rbp, kIndexOffset)); 1096 __ movp(key, Operand(rbp, kIndexOffset));
1092 __ SmiAddConstant(key, key, Smi::FromInt(1)); 1097 __ SmiAddConstant(key, key, Smi::FromInt(1));
1093 __ movp(Operand(rbp, kIndexOffset), key); 1098 __ movp(Operand(rbp, kIndexOffset), key);
1094 1099
1095 __ bind(&entry); 1100 __ bind(&entry);
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 __ bind(&ok); 1522 __ bind(&ok);
1518 __ ret(0); 1523 __ ret(0);
1519 } 1524 }
1520 1525
1521 1526
1522 #undef __ 1527 #undef __
1523 1528
1524 } } // namespace v8::internal 1529 } } // namespace v8::internal
1525 1530
1526 #endif // V8_TARGET_ARCH_X64 1531 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/x64/debug-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698