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

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

Issue 767743002: Hydrogen code stubs for vector-based ICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code comment response (mostly). Created 6 years 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
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 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 } 1091 }
1092 1092
1093 1093
1094 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( 1094 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache(
1095 HTailCallThroughMegamorphicCache* instr) { 1095 HTailCallThroughMegamorphicCache* instr) {
1096 LOperand* context = UseFixed(instr->context(), cp); 1096 LOperand* context = UseFixed(instr->context(), cp);
1097 LOperand* receiver_register = 1097 LOperand* receiver_register =
1098 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); 1098 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister());
1099 LOperand* name_register = 1099 LOperand* name_register =
1100 UseFixed(instr->name(), LoadDescriptor::NameRegister()); 1100 UseFixed(instr->name(), LoadDescriptor::NameRegister());
1101 LOperand* slot = NULL;
1102 LOperand* vector = NULL;
1103 if (FLAG_vector_ics) {
1104 slot = UseFixed(instr->slot(), VectorLoadICDescriptor::SlotRegister());
1105 vector =
1106 UseFixed(instr->vector(), VectorLoadICDescriptor::VectorRegister());
1107 }
1108
1101 // Not marked as call. It can't deoptimize, and it never returns. 1109 // Not marked as call. It can't deoptimize, and it never returns.
1102 return new (zone()) LTailCallThroughMegamorphicCache( 1110 return new (zone()) LTailCallThroughMegamorphicCache(
1103 context, receiver_register, name_register); 1111 context, receiver_register, name_register, slot, vector);
1104 } 1112 }
1105 1113
1106 1114
1107 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1115 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1108 LOperand* context = UseFixed(instr->context(), cp); 1116 LOperand* context = UseFixed(instr->context(), cp);
1109 LOperand* function = UseFixed(instr->function(), r1); 1117 LOperand* function = UseFixed(instr->function(), r1);
1110 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); 1118 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function);
1111 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1119 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1112 } 1120 }
1113 1121
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
2104 ? AssignEnvironment(DefineAsRegister(result)) 2112 ? AssignEnvironment(DefineAsRegister(result))
2105 : DefineAsRegister(result); 2113 : DefineAsRegister(result);
2106 } 2114 }
2107 2115
2108 2116
2109 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2117 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2110 LOperand* context = UseFixed(instr->context(), cp); 2118 LOperand* context = UseFixed(instr->context(), cp);
2111 LOperand* global_object = 2119 LOperand* global_object =
2112 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); 2120 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister());
2113 LOperand* vector = NULL; 2121 LOperand* vector = NULL;
2114 if (FLAG_vector_ics) { 2122 if (instr->HasVectorAndSlot()) {
2115 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2123 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister());
2116 } 2124 }
2117 LLoadGlobalGeneric* result = 2125 LLoadGlobalGeneric* result =
2118 new(zone()) LLoadGlobalGeneric(context, global_object, vector); 2126 new(zone()) LLoadGlobalGeneric(context, global_object, vector);
2119 return MarkAsCall(DefineFixed(result, r0), instr); 2127 return MarkAsCall(DefineFixed(result, r0), instr);
2120 } 2128 }
2121 2129
2122 2130
2123 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { 2131 LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
2124 LOperand* value = UseRegister(instr->value()); 2132 LOperand* value = UseRegister(instr->value());
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 LOperand* obj = UseRegisterAtStart(instr->object()); 2171 LOperand* obj = UseRegisterAtStart(instr->object());
2164 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2172 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2165 } 2173 }
2166 2174
2167 2175
2168 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 2176 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2169 LOperand* context = UseFixed(instr->context(), cp); 2177 LOperand* context = UseFixed(instr->context(), cp);
2170 LOperand* object = 2178 LOperand* object =
2171 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); 2179 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2172 LOperand* vector = NULL; 2180 LOperand* vector = NULL;
2173 if (FLAG_vector_ics) { 2181 if (instr->HasVectorAndSlot()) {
2174 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2182 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister());
2175 } 2183 }
2176 2184
2177 LInstruction* result = 2185 LInstruction* result =
2178 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), r0); 2186 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), r0);
2179 return MarkAsCall(result, instr); 2187 return MarkAsCall(result, instr);
2180 } 2188 }
2181 2189
2182 2190
2183 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2191 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2230 return result; 2238 return result;
2231 } 2239 }
2232 2240
2233 2241
2234 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { 2242 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
2235 LOperand* context = UseFixed(instr->context(), cp); 2243 LOperand* context = UseFixed(instr->context(), cp);
2236 LOperand* object = 2244 LOperand* object =
2237 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); 2245 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2238 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister()); 2246 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister());
2239 LOperand* vector = NULL; 2247 LOperand* vector = NULL;
2240 if (FLAG_vector_ics) { 2248 if (instr->HasVectorAndSlot()) {
2241 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); 2249 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister());
2242 } 2250 }
2243 2251
2244 LInstruction* result = 2252 LInstruction* result =
2245 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key, vector), 2253 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key, vector),
2246 r0); 2254 r0);
2247 return MarkAsCall(result, instr); 2255 return MarkAsCall(result, instr);
2248 } 2256 }
2249 2257
2250 2258
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
2631 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2639 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2632 HAllocateBlockContext* instr) { 2640 HAllocateBlockContext* instr) {
2633 LOperand* context = UseFixed(instr->context(), cp); 2641 LOperand* context = UseFixed(instr->context(), cp);
2634 LOperand* function = UseRegisterAtStart(instr->function()); 2642 LOperand* function = UseRegisterAtStart(instr->function());
2635 LAllocateBlockContext* result = 2643 LAllocateBlockContext* result =
2636 new(zone()) LAllocateBlockContext(context, function); 2644 new(zone()) LAllocateBlockContext(context, function);
2637 return MarkAsCall(DefineFixed(result, cp), instr); 2645 return MarkAsCall(DefineFixed(result, cp), instr);
2638 } 2646 }
2639 2647
2640 } } // namespace v8::internal 2648 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698