OLD | NEW |
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_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2072 } | 2072 } |
2073 } | 2073 } |
2074 | 2074 |
2075 | 2075 |
2076 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 2076 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
2077 LOperand* context = UseFixed(instr->context(), cp); | 2077 LOperand* context = UseFixed(instr->context(), cp); |
2078 LOperand* global_object = | 2078 LOperand* global_object = |
2079 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); | 2079 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); |
2080 LOperand* vector = NULL; | 2080 LOperand* vector = NULL; |
2081 if (instr->HasVectorAndSlot()) { | 2081 if (instr->HasVectorAndSlot()) { |
2082 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); | 2082 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
2083 } | 2083 } |
2084 LLoadGlobalGeneric* result = | 2084 LLoadGlobalGeneric* result = |
2085 new(zone()) LLoadGlobalGeneric(context, global_object, vector); | 2085 new(zone()) LLoadGlobalGeneric(context, global_object, vector); |
2086 return MarkAsCall(DefineFixed(result, v0), instr); | 2086 return MarkAsCall(DefineFixed(result, v0), instr); |
2087 } | 2087 } |
2088 | 2088 |
2089 | 2089 |
2090 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2090 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
2091 LOperand* context = UseRegisterAtStart(instr->value()); | 2091 LOperand* context = UseRegisterAtStart(instr->value()); |
2092 LInstruction* result = | 2092 LInstruction* result = |
(...skipping 28 matching lines...) Expand all Loading... |
2121 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); | 2121 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); |
2122 } | 2122 } |
2123 | 2123 |
2124 | 2124 |
2125 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | 2125 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { |
2126 LOperand* context = UseFixed(instr->context(), cp); | 2126 LOperand* context = UseFixed(instr->context(), cp); |
2127 LOperand* object = | 2127 LOperand* object = |
2128 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); | 2128 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); |
2129 LOperand* vector = NULL; | 2129 LOperand* vector = NULL; |
2130 if (instr->HasVectorAndSlot()) { | 2130 if (instr->HasVectorAndSlot()) { |
2131 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); | 2131 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
2132 } | 2132 } |
2133 | 2133 |
2134 LInstruction* result = | 2134 LInstruction* result = |
2135 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), v0); | 2135 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), v0); |
2136 return MarkAsCall(result, instr); | 2136 return MarkAsCall(result, instr); |
2137 } | 2137 } |
2138 | 2138 |
2139 | 2139 |
2140 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2140 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
2141 HLoadFunctionPrototype* instr) { | 2141 HLoadFunctionPrototype* instr) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2196 } | 2196 } |
2197 | 2197 |
2198 | 2198 |
2199 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { | 2199 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { |
2200 LOperand* context = UseFixed(instr->context(), cp); | 2200 LOperand* context = UseFixed(instr->context(), cp); |
2201 LOperand* object = | 2201 LOperand* object = |
2202 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); | 2202 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); |
2203 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister()); | 2203 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister()); |
2204 LOperand* vector = NULL; | 2204 LOperand* vector = NULL; |
2205 if (instr->HasVectorAndSlot()) { | 2205 if (instr->HasVectorAndSlot()) { |
2206 vector = FixedTemp(VectorLoadICDescriptor::VectorRegister()); | 2206 vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
2207 } | 2207 } |
2208 | 2208 |
2209 LInstruction* result = | 2209 LInstruction* result = |
2210 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key, vector), | 2210 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key, vector), |
2211 v0); | 2211 v0); |
2212 return MarkAsCall(result, instr); | 2212 return MarkAsCall(result, instr); |
2213 } | 2213 } |
2214 | 2214 |
2215 | 2215 |
2216 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { | 2216 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2616 LOperand* function = UseRegisterAtStart(instr->function()); | 2616 LOperand* function = UseRegisterAtStart(instr->function()); |
2617 LAllocateBlockContext* result = | 2617 LAllocateBlockContext* result = |
2618 new(zone()) LAllocateBlockContext(context, function); | 2618 new(zone()) LAllocateBlockContext(context, function); |
2619 return MarkAsCall(DefineFixed(result, cp), instr); | 2619 return MarkAsCall(DefineFixed(result, cp), instr); |
2620 } | 2620 } |
2621 | 2621 |
2622 | 2622 |
2623 } } // namespace v8::internal | 2623 } } // namespace v8::internal |
2624 | 2624 |
2625 #endif // V8_TARGET_ARCH_MIPS64 | 2625 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |