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/x64/lithium-x64.h" | 5 #include "src/crankshaft/x64/lithium-x64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2227 LOperand* context = UseFixed(instr->context(), rsi); | 2227 LOperand* context = UseFixed(instr->context(), rsi); |
2228 LOperand* object = | 2228 LOperand* object = |
2229 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2229 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); |
2230 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); | 2230 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); |
2231 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2231 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); |
2232 | 2232 |
2233 DCHECK(instr->object()->representation().IsTagged()); | 2233 DCHECK(instr->object()->representation().IsTagged()); |
2234 DCHECK(instr->key()->representation().IsTagged()); | 2234 DCHECK(instr->key()->representation().IsTagged()); |
2235 DCHECK(instr->value()->representation().IsTagged()); | 2235 DCHECK(instr->value()->representation().IsTagged()); |
2236 | 2236 |
2237 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); | 2237 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister()); |
2238 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); | 2238 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister()); |
2239 | 2239 |
2240 LStoreKeyedGeneric* result = new (zone()) | 2240 LStoreKeyedGeneric* result = new (zone()) |
2241 LStoreKeyedGeneric(context, object, key, value, slot, vector); | 2241 LStoreKeyedGeneric(context, object, key, value, slot, vector); |
2242 return MarkAsCall(result, instr); | 2242 return MarkAsCall(result, instr); |
2243 } | 2243 } |
2244 | 2244 |
2245 | 2245 |
2246 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2246 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
2247 HTransitionElementsKind* instr) { | 2247 HTransitionElementsKind* instr) { |
2248 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2248 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2335 | 2335 |
2336 return new(zone()) LStoreNamedField(obj, val, temp); | 2336 return new(zone()) LStoreNamedField(obj, val, temp); |
2337 } | 2337 } |
2338 | 2338 |
2339 | 2339 |
2340 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2340 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
2341 LOperand* context = UseFixed(instr->context(), rsi); | 2341 LOperand* context = UseFixed(instr->context(), rsi); |
2342 LOperand* object = | 2342 LOperand* object = |
2343 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2343 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); |
2344 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2344 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); |
2345 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); | 2345 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister()); |
2346 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); | 2346 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister()); |
2347 | 2347 |
2348 LStoreNamedGeneric* result = | 2348 LStoreNamedGeneric* result = |
2349 new (zone()) LStoreNamedGeneric(context, object, value, slot, vector); | 2349 new (zone()) LStoreNamedGeneric(context, object, value, slot, vector); |
2350 return MarkAsCall(result, instr); | 2350 return MarkAsCall(result, instr); |
2351 } | 2351 } |
2352 | 2352 |
2353 | 2353 |
2354 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2354 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
2355 LOperand* context = UseFixed(instr->context(), rsi); | 2355 LOperand* context = UseFixed(instr->context(), rsi); |
2356 LOperand* left = UseFixed(instr->left(), rdx); | 2356 LOperand* left = UseFixed(instr->left(), rdx); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 LOperand* index = UseTempRegister(instr->index()); | 2569 LOperand* index = UseTempRegister(instr->index()); |
2570 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2570 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2571 LInstruction* result = DefineSameAsFirst(load); | 2571 LInstruction* result = DefineSameAsFirst(load); |
2572 return AssignPointerMap(result); | 2572 return AssignPointerMap(result); |
2573 } | 2573 } |
2574 | 2574 |
2575 } // namespace internal | 2575 } // namespace internal |
2576 } // namespace v8 | 2576 } // namespace v8 |
2577 | 2577 |
2578 #endif // V8_TARGET_ARCH_X64 | 2578 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |