OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 } | 2085 } |
2086 } | 2086 } |
2087 | 2087 |
2088 | 2088 |
2089 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 2089 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
2090 LOperand* context = UseFixed(instr->context(), cp); | 2090 LOperand* context = UseFixed(instr->context(), cp); |
2091 LOperand* global_object = | 2091 LOperand* global_object = |
2092 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); | 2092 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); |
2093 LOperand* vector = NULL; | 2093 LOperand* vector = NULL; |
2094 if (instr->HasVectorAndSlot()) { | 2094 if (instr->HasVectorAndSlot()) { |
2095 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); | 2095 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
2096 } | 2096 } |
2097 LLoadGlobalGeneric* result = | 2097 LLoadGlobalGeneric* result = |
2098 new (zone()) LLoadGlobalGeneric(context, global_object, vector); | 2098 new (zone()) LLoadGlobalGeneric(context, global_object, vector); |
2099 return MarkAsCall(DefineFixed(result, r3), instr); | 2099 return MarkAsCall(DefineFixed(result, r3), instr); |
2100 } | 2100 } |
2101 | 2101 |
2102 | 2102 |
2103 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2103 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
2104 LOperand* context = UseRegisterAtStart(instr->value()); | 2104 LOperand* context = UseRegisterAtStart(instr->value()); |
2105 LInstruction* result = | 2105 LInstruction* result = |
(...skipping 28 matching lines...) Expand all Loading... |
2134 return DefineAsRegister(new (zone()) LLoadNamedField(obj)); | 2134 return DefineAsRegister(new (zone()) LLoadNamedField(obj)); |
2135 } | 2135 } |
2136 | 2136 |
2137 | 2137 |
2138 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | 2138 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { |
2139 LOperand* context = UseFixed(instr->context(), cp); | 2139 LOperand* context = UseFixed(instr->context(), cp); |
2140 LOperand* object = | 2140 LOperand* object = |
2141 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); | 2141 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); |
2142 LOperand* vector = NULL; | 2142 LOperand* vector = NULL; |
2143 if (instr->HasVectorAndSlot()) { | 2143 if (instr->HasVectorAndSlot()) { |
2144 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); | 2144 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
2145 } | 2145 } |
2146 | 2146 |
2147 LInstruction* result = | 2147 LInstruction* result = |
2148 DefineFixed(new (zone()) LLoadNamedGeneric(context, object, vector), r3); | 2148 DefineFixed(new (zone()) LLoadNamedGeneric(context, object, vector), r3); |
2149 return MarkAsCall(result, instr); | 2149 return MarkAsCall(result, instr); |
2150 } | 2150 } |
2151 | 2151 |
2152 | 2152 |
2153 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2153 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
2154 HLoadFunctionPrototype* instr) { | 2154 HLoadFunctionPrototype* instr) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2206 } | 2206 } |
2207 | 2207 |
2208 | 2208 |
2209 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { | 2209 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { |
2210 LOperand* context = UseFixed(instr->context(), cp); | 2210 LOperand* context = UseFixed(instr->context(), cp); |
2211 LOperand* object = | 2211 LOperand* object = |
2212 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); | 2212 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); |
2213 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister()); | 2213 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister()); |
2214 LOperand* vector = NULL; | 2214 LOperand* vector = NULL; |
2215 if (instr->HasVectorAndSlot()) { | 2215 if (instr->HasVectorAndSlot()) { |
2216 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); | 2216 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
2217 } | 2217 } |
2218 | 2218 |
2219 LInstruction* result = DefineFixed( | 2219 LInstruction* result = DefineFixed( |
2220 new (zone()) LLoadKeyedGeneric(context, object, key, vector), r3); | 2220 new (zone()) LLoadKeyedGeneric(context, object, key, vector), r3); |
2221 return MarkAsCall(result, instr); | 2221 return MarkAsCall(result, instr); |
2222 } | 2222 } |
2223 | 2223 |
2224 | 2224 |
2225 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { | 2225 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { |
2226 if (!instr->is_typed_elements()) { | 2226 if (!instr->is_typed_elements()) { |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2615 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2615 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
2616 HAllocateBlockContext* instr) { | 2616 HAllocateBlockContext* instr) { |
2617 LOperand* context = UseFixed(instr->context(), cp); | 2617 LOperand* context = UseFixed(instr->context(), cp); |
2618 LOperand* function = UseRegisterAtStart(instr->function()); | 2618 LOperand* function = UseRegisterAtStart(instr->function()); |
2619 LAllocateBlockContext* result = | 2619 LAllocateBlockContext* result = |
2620 new (zone()) LAllocateBlockContext(context, function); | 2620 new (zone()) LAllocateBlockContext(context, function); |
2621 return MarkAsCall(DefineFixed(result, cp), instr); | 2621 return MarkAsCall(DefineFixed(result, cp), instr); |
2622 } | 2622 } |
2623 } | 2623 } |
2624 } // namespace v8::internal | 2624 } // namespace v8::internal |
OLD | NEW |