| 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/ia32/lithium-ia32.h" | 5 #include "src/crankshaft/ia32/lithium-ia32.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 | 10 |
| (...skipping 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2215 LOperand* context = UseFixed(instr->context(), esi); | 2215 LOperand* context = UseFixed(instr->context(), esi); |
| 2216 LOperand* object = | 2216 LOperand* object = |
| 2217 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2217 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); |
| 2218 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); | 2218 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); |
| 2219 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2219 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); |
| 2220 | 2220 |
| 2221 DCHECK(instr->object()->representation().IsTagged()); | 2221 DCHECK(instr->object()->representation().IsTagged()); |
| 2222 DCHECK(instr->key()->representation().IsTagged()); | 2222 DCHECK(instr->key()->representation().IsTagged()); |
| 2223 DCHECK(instr->value()->representation().IsTagged()); | 2223 DCHECK(instr->value()->representation().IsTagged()); |
| 2224 | 2224 |
| 2225 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); | 2225 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister()); |
| 2226 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); | 2226 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister()); |
| 2227 | 2227 |
| 2228 LStoreKeyedGeneric* result = new (zone()) | 2228 LStoreKeyedGeneric* result = new (zone()) |
| 2229 LStoreKeyedGeneric(context, object, key, value, slot, vector); | 2229 LStoreKeyedGeneric(context, object, key, value, slot, vector); |
| 2230 return MarkAsCall(result, instr); | 2230 return MarkAsCall(result, instr); |
| 2231 } | 2231 } |
| 2232 | 2232 |
| 2233 | 2233 |
| 2234 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2234 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
| 2235 HTransitionElementsKind* instr) { | 2235 HTransitionElementsKind* instr) { |
| 2236 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2236 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2330 | 2330 |
| 2331 return new(zone()) LStoreNamedField(obj, val, temp, temp_map); | 2331 return new(zone()) LStoreNamedField(obj, val, temp, temp_map); |
| 2332 } | 2332 } |
| 2333 | 2333 |
| 2334 | 2334 |
| 2335 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2335 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
| 2336 LOperand* context = UseFixed(instr->context(), esi); | 2336 LOperand* context = UseFixed(instr->context(), esi); |
| 2337 LOperand* object = | 2337 LOperand* object = |
| 2338 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2338 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); |
| 2339 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2339 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); |
| 2340 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); | 2340 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister()); |
| 2341 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); | 2341 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister()); |
| 2342 | 2342 |
| 2343 LStoreNamedGeneric* result = | 2343 LStoreNamedGeneric* result = |
| 2344 new (zone()) LStoreNamedGeneric(context, object, value, slot, vector); | 2344 new (zone()) LStoreNamedGeneric(context, object, value, slot, vector); |
| 2345 return MarkAsCall(result, instr); | 2345 return MarkAsCall(result, instr); |
| 2346 } | 2346 } |
| 2347 | 2347 |
| 2348 | 2348 |
| 2349 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2349 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
| 2350 LOperand* context = UseFixed(instr->context(), esi); | 2350 LOperand* context = UseFixed(instr->context(), esi); |
| 2351 LOperand* left = UseFixed(instr->left(), edx); | 2351 LOperand* left = UseFixed(instr->left(), edx); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 LOperand* index = UseTempRegister(instr->index()); | 2563 LOperand* index = UseTempRegister(instr->index()); |
| 2564 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2564 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2565 LInstruction* result = DefineSameAsFirst(load); | 2565 LInstruction* result = DefineSameAsFirst(load); |
| 2566 return AssignPointerMap(result); | 2566 return AssignPointerMap(result); |
| 2567 } | 2567 } |
| 2568 | 2568 |
| 2569 } // namespace internal | 2569 } // namespace internal |
| 2570 } // namespace v8 | 2570 } // namespace v8 |
| 2571 | 2571 |
| 2572 #endif // V8_TARGET_ARCH_IA32 | 2572 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |