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

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

Issue 1265113002: X87: VectorICs: refactoring to eliminate "for queries only" vector ic mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/ic/x87/ic-x87.cc ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 Register receiver = LoadDescriptor::ReceiverRegister(); 1098 Register receiver = LoadDescriptor::ReceiverRegister();
1099 Register key = LoadDescriptor::NameRegister(); 1099 Register key = LoadDescriptor::NameRegister();
1100 Register slot = LoadDescriptor::SlotRegister(); 1100 Register slot = LoadDescriptor::SlotRegister();
1101 Register vector = LoadWithVectorDescriptor::VectorRegister(); 1101 Register vector = LoadWithVectorDescriptor::VectorRegister();
1102 __ mov(key, Operand(ebp, indexOffset)); 1102 __ mov(key, Operand(ebp, indexOffset));
1103 __ jmp(&entry); 1103 __ jmp(&entry);
1104 __ bind(&loop); 1104 __ bind(&loop);
1105 __ mov(receiver, Operand(ebp, argumentsOffset)); // load arguments 1105 __ mov(receiver, Operand(ebp, argumentsOffset)); // load arguments
1106 1106
1107 // Use inline caching to speed up access to arguments. 1107 // Use inline caching to speed up access to arguments.
1108 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); 1108 Code::Kind kinds[] = {Code::KEYED_LOAD_IC};
1109 FeedbackVectorSpec spec(0, 1, kinds);
1109 Handle<TypeFeedbackVector> feedback_vector = 1110 Handle<TypeFeedbackVector> feedback_vector =
1110 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); 1111 masm->isolate()->factory()->NewTypeFeedbackVector(&spec);
1111 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); 1112 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0));
1112 __ mov(slot, Immediate(Smi::FromInt(index))); 1113 __ mov(slot, Immediate(Smi::FromInt(index)));
1113 __ mov(vector, Immediate(feedback_vector)); 1114 __ mov(vector, Immediate(feedback_vector));
1114 Handle<Code> ic = 1115 Handle<Code> ic =
1115 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode(); 1116 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode();
1116 __ call(ic, RelocInfo::CODE_TARGET); 1117 __ call(ic, RelocInfo::CODE_TARGET);
1117 // It is important that we do not have a test instruction after the 1118 // It is important that we do not have a test instruction after the
1118 // call. A test instruction after the call is used to indicate that 1119 // call. A test instruction after the call is used to indicate that
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 1762
1762 __ bind(&ok); 1763 __ bind(&ok);
1763 __ ret(0); 1764 __ ret(0);
1764 } 1765 }
1765 1766
1766 #undef __ 1767 #undef __
1767 } // namespace internal 1768 } // namespace internal
1768 } // namespace v8 1769 } // namespace v8
1769 1770
1770 #endif // V8_TARGET_ARCH_X87 1771 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/ic/x87/ic-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698