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

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

Issue 1152473003: X87: Cleanup interface descriptors to reflect that vectors are part of loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/x87/lithium-codegen-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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 } 2118 }
2119 } 2119 }
2120 2120
2121 2121
2122 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2122 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2123 LOperand* context = UseFixed(instr->context(), esi); 2123 LOperand* context = UseFixed(instr->context(), esi);
2124 LOperand* global_object = 2124 LOperand* global_object =
2125 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); 2125 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister());
2126 LOperand* vector = NULL; 2126 LOperand* vector = NULL;
2127 if (instr->HasVectorAndSlot()) { 2127 if (instr->HasVectorAndSlot()) {
2128 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2128 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2129 } 2129 }
2130 2130
2131 LLoadGlobalGeneric* result = 2131 LLoadGlobalGeneric* result =
2132 new(zone()) LLoadGlobalGeneric(context, global_object, vector); 2132 new(zone()) LLoadGlobalGeneric(context, global_object, vector);
2133 return MarkAsCall(DefineFixed(result, eax), instr); 2133 return MarkAsCall(DefineFixed(result, eax), instr);
2134 } 2134 }
2135 2135
2136 2136
2137 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2137 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2138 LOperand* context = UseRegisterAtStart(instr->value()); 2138 LOperand* context = UseRegisterAtStart(instr->value());
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2172 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2173 } 2173 }
2174 2174
2175 2175
2176 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 2176 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2177 LOperand* context = UseFixed(instr->context(), esi); 2177 LOperand* context = UseFixed(instr->context(), esi);
2178 LOperand* object = 2178 LOperand* object =
2179 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); 2179 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2180 LOperand* vector = NULL; 2180 LOperand* vector = NULL;
2181 if (instr->HasVectorAndSlot()) { 2181 if (instr->HasVectorAndSlot()) {
2182 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2182 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2183 } 2183 }
2184 LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric( 2184 LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric(
2185 context, object, vector); 2185 context, object, vector);
2186 return MarkAsCall(DefineFixed(result, eax), instr); 2186 return MarkAsCall(DefineFixed(result, eax), instr);
2187 } 2187 }
2188 2188
2189 2189
2190 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2190 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2191 HLoadFunctionPrototype* instr) { 2191 HLoadFunctionPrototype* instr) {
2192 return AssignEnvironment(DefineAsRegister( 2192 return AssignEnvironment(DefineAsRegister(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 } 2244 }
2245 2245
2246 2246
2247 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { 2247 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
2248 LOperand* context = UseFixed(instr->context(), esi); 2248 LOperand* context = UseFixed(instr->context(), esi);
2249 LOperand* object = 2249 LOperand* object =
2250 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); 2250 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2251 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister()); 2251 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister());
2252 LOperand* vector = NULL; 2252 LOperand* vector = NULL;
2253 if (instr->HasVectorAndSlot()) { 2253 if (instr->HasVectorAndSlot()) {
2254 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2254 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2255 } 2255 }
2256 LLoadKeyedGeneric* result = 2256 LLoadKeyedGeneric* result =
2257 new(zone()) LLoadKeyedGeneric(context, object, key, vector); 2257 new(zone()) LLoadKeyedGeneric(context, object, key, vector);
2258 return MarkAsCall(DefineFixed(result, eax), instr); 2258 return MarkAsCall(DefineFixed(result, eax), instr);
2259 } 2259 }
2260 2260
2261 2261
2262 LOperand* LChunkBuilder::GetStoreKeyedValueOperand(HStoreKeyed* instr) { 2262 LOperand* LChunkBuilder::GetStoreKeyedValueOperand(HStoreKeyed* instr) {
2263 ElementsKind elements_kind = instr->elements_kind(); 2263 ElementsKind elements_kind = instr->elements_kind();
2264 2264
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 LOperand* function = UseRegisterAtStart(instr->function()); 2735 LOperand* function = UseRegisterAtStart(instr->function());
2736 LAllocateBlockContext* result = 2736 LAllocateBlockContext* result =
2737 new(zone()) LAllocateBlockContext(context, function); 2737 new(zone()) LAllocateBlockContext(context, function);
2738 return MarkAsCall(DefineFixed(result, esi), instr); 2738 return MarkAsCall(DefineFixed(result, esi), instr);
2739 } 2739 }
2740 2740
2741 2741
2742 } } // namespace v8::internal 2742 } } // namespace v8::internal
2743 2743
2744 #endif // V8_TARGET_ARCH_X87 2744 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698