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 #include "src/arm/lithium-codegen-arm.h" | 9 #include "src/arm/lithium-codegen-arm.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 2304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2315 LOperand* context = UseFixed(instr->context(), cp); | 2315 LOperand* context = UseFixed(instr->context(), cp); |
2316 LOperand* obj = | 2316 LOperand* obj = |
2317 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2317 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); |
2318 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); | 2318 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); |
2319 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2319 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); |
2320 | 2320 |
2321 DCHECK(instr->object()->representation().IsTagged()); | 2321 DCHECK(instr->object()->representation().IsTagged()); |
2322 DCHECK(instr->key()->representation().IsTagged()); | 2322 DCHECK(instr->key()->representation().IsTagged()); |
2323 DCHECK(instr->value()->representation().IsTagged()); | 2323 DCHECK(instr->value()->representation().IsTagged()); |
2324 | 2324 |
2325 return MarkAsCall( | 2325 LOperand* slot = NULL; |
2326 new(zone()) LStoreKeyedGeneric(context, obj, key, val), instr); | 2326 LOperand* vector = NULL; |
| 2327 if (instr->HasVectorAndSlot()) { |
| 2328 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); |
| 2329 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); |
| 2330 } |
| 2331 |
| 2332 LStoreKeyedGeneric* result = |
| 2333 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector); |
| 2334 return MarkAsCall(result, instr); |
2327 } | 2335 } |
2328 | 2336 |
2329 | 2337 |
2330 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2338 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
2331 HTransitionElementsKind* instr) { | 2339 HTransitionElementsKind* instr) { |
2332 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2340 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
2333 LOperand* object = UseRegister(instr->object()); | 2341 LOperand* object = UseRegister(instr->object()); |
2334 LOperand* new_map_reg = TempRegister(); | 2342 LOperand* new_map_reg = TempRegister(); |
2335 LTransitionElementsKind* result = | 2343 LTransitionElementsKind* result = |
2336 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg); | 2344 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2401 | 2409 |
2402 return new(zone()) LStoreNamedField(obj, val, temp); | 2410 return new(zone()) LStoreNamedField(obj, val, temp); |
2403 } | 2411 } |
2404 | 2412 |
2405 | 2413 |
2406 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2414 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
2407 LOperand* context = UseFixed(instr->context(), cp); | 2415 LOperand* context = UseFixed(instr->context(), cp); |
2408 LOperand* obj = | 2416 LOperand* obj = |
2409 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2417 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); |
2410 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2418 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); |
| 2419 LOperand* slot = NULL; |
| 2420 LOperand* vector = NULL; |
| 2421 if (instr->HasVectorAndSlot()) { |
| 2422 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); |
| 2423 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); |
| 2424 } |
2411 | 2425 |
2412 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); | 2426 LStoreNamedGeneric* result = |
| 2427 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector); |
2413 return MarkAsCall(result, instr); | 2428 return MarkAsCall(result, instr); |
2414 } | 2429 } |
2415 | 2430 |
2416 | 2431 |
2417 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2432 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { |
2418 LOperand* context = UseFixed(instr->context(), cp); | 2433 LOperand* context = UseFixed(instr->context(), cp); |
2419 LOperand* left = UseFixed(instr->left(), r1); | 2434 LOperand* left = UseFixed(instr->left(), r1); |
2420 LOperand* right = UseFixed(instr->right(), r0); | 2435 LOperand* right = UseFixed(instr->right(), r0); |
2421 return MarkAsCall( | 2436 return MarkAsCall( |
2422 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), | 2437 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2667 HAllocateBlockContext* instr) { | 2682 HAllocateBlockContext* instr) { |
2668 LOperand* context = UseFixed(instr->context(), cp); | 2683 LOperand* context = UseFixed(instr->context(), cp); |
2669 LOperand* function = UseRegisterAtStart(instr->function()); | 2684 LOperand* function = UseRegisterAtStart(instr->function()); |
2670 LAllocateBlockContext* result = | 2685 LAllocateBlockContext* result = |
2671 new(zone()) LAllocateBlockContext(context, function); | 2686 new(zone()) LAllocateBlockContext(context, function); |
2672 return MarkAsCall(DefineFixed(result, cp), instr); | 2687 return MarkAsCall(DefineFixed(result, cp), instr); |
2673 } | 2688 } |
2674 | 2689 |
2675 } // namespace internal | 2690 } // namespace internal |
2676 } // namespace v8 | 2691 } // namespace v8 |
OLD | NEW |