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 "src/crankshaft/mips/lithium-mips.h" | 5 #include "src/crankshaft/mips/lithium-mips.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2131 LOperand* context = UseFixed(instr->context(), cp); | 2131 LOperand* context = UseFixed(instr->context(), cp); |
2132 LOperand* obj = | 2132 LOperand* obj = |
2133 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2133 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); |
2134 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); | 2134 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); |
2135 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2135 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); |
2136 | 2136 |
2137 DCHECK(instr->object()->representation().IsTagged()); | 2137 DCHECK(instr->object()->representation().IsTagged()); |
2138 DCHECK(instr->key()->representation().IsTagged()); | 2138 DCHECK(instr->key()->representation().IsTagged()); |
2139 DCHECK(instr->value()->representation().IsTagged()); | 2139 DCHECK(instr->value()->representation().IsTagged()); |
2140 | 2140 |
2141 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); | 2141 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister()); |
2142 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); | 2142 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister()); |
2143 | 2143 |
2144 LStoreKeyedGeneric* result = | 2144 LStoreKeyedGeneric* result = |
2145 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector); | 2145 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector); |
2146 return MarkAsCall(result, instr); | 2146 return MarkAsCall(result, instr); |
2147 } | 2147 } |
2148 | 2148 |
2149 | 2149 |
2150 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2150 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
2151 HTransitionElementsKind* instr) { | 2151 HTransitionElementsKind* instr) { |
2152 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2152 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2221 | 2221 |
2222 return new(zone()) LStoreNamedField(obj, val, temp); | 2222 return new(zone()) LStoreNamedField(obj, val, temp); |
2223 } | 2223 } |
2224 | 2224 |
2225 | 2225 |
2226 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2226 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
2227 LOperand* context = UseFixed(instr->context(), cp); | 2227 LOperand* context = UseFixed(instr->context(), cp); |
2228 LOperand* obj = | 2228 LOperand* obj = |
2229 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2229 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); |
2230 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2230 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); |
2231 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); | 2231 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister()); |
2232 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); | 2232 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister()); |
2233 | 2233 |
2234 LStoreNamedGeneric* result = | 2234 LStoreNamedGeneric* result = |
2235 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector); | 2235 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector); |
2236 return MarkAsCall(result, instr); | 2236 return MarkAsCall(result, instr); |
2237 } | 2237 } |
2238 | 2238 |
2239 | 2239 |
2240 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2240 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
2241 LOperand* context = UseFixed(instr->context(), cp); | 2241 LOperand* context = UseFixed(instr->context(), cp); |
2242 LOperand* left = UseFixed(instr->left(), a1); | 2242 LOperand* left = UseFixed(instr->left(), a1); |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 LOperand* index = UseTempRegister(instr->index()); | 2446 LOperand* index = UseTempRegister(instr->index()); |
2447 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2447 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2448 LInstruction* result = DefineSameAsFirst(load); | 2448 LInstruction* result = DefineSameAsFirst(load); |
2449 return AssignPointerMap(result); | 2449 return AssignPointerMap(result); |
2450 } | 2450 } |
2451 | 2451 |
2452 } // namespace internal | 2452 } // namespace internal |
2453 } // namespace v8 | 2453 } // namespace v8 |
2454 | 2454 |
2455 #endif // V8_TARGET_ARCH_MIPS | 2455 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |