| 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_X87 | 9 #if V8_TARGET_ARCH_X87 | 
| 10 | 10 | 
| (...skipping 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2340   LOperand* context = UseFixed(instr->context(), esi); | 2340   LOperand* context = UseFixed(instr->context(), esi); | 
| 2341   LOperand* object = | 2341   LOperand* object = | 
| 2342       UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2342       UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 
| 2343   LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); | 2343   LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); | 
| 2344   LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2344   LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 
| 2345 | 2345 | 
| 2346   DCHECK(instr->object()->representation().IsTagged()); | 2346   DCHECK(instr->object()->representation().IsTagged()); | 
| 2347   DCHECK(instr->key()->representation().IsTagged()); | 2347   DCHECK(instr->key()->representation().IsTagged()); | 
| 2348   DCHECK(instr->value()->representation().IsTagged()); | 2348   DCHECK(instr->value()->representation().IsTagged()); | 
| 2349 | 2349 | 
| 2350   LStoreKeyedGeneric* result = | 2350   LOperand* slot = NULL; | 
| 2351       new(zone()) LStoreKeyedGeneric(context, object, key, value); | 2351   LOperand* vector = NULL; | 
|  | 2352   if (instr->HasVectorAndSlot()) { | 
|  | 2353     slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); | 
|  | 2354     vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); | 
|  | 2355   } | 
|  | 2356 | 
|  | 2357   LStoreKeyedGeneric* result = new (zone()) | 
|  | 2358       LStoreKeyedGeneric(context, object, key, value, slot, vector); | 
| 2352   return MarkAsCall(result, instr); | 2359   return MarkAsCall(result, instr); | 
| 2353 } | 2360 } | 
| 2354 | 2361 | 
| 2355 | 2362 | 
| 2356 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2363 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 
| 2357     HTransitionElementsKind* instr) { | 2364     HTransitionElementsKind* instr) { | 
| 2358   if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2365   if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 
| 2359     LOperand* object = UseRegister(instr->object()); | 2366     LOperand* object = UseRegister(instr->object()); | 
| 2360     LOperand* new_map_reg = TempRegister(); | 2367     LOperand* new_map_reg = TempRegister(); | 
| 2361     LOperand* temp_reg = TempRegister(); | 2368     LOperand* temp_reg = TempRegister(); | 
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2452 | 2459 | 
| 2453   return new(zone()) LStoreNamedField(obj, val, temp, temp_map); | 2460   return new(zone()) LStoreNamedField(obj, val, temp, temp_map); | 
| 2454 } | 2461 } | 
| 2455 | 2462 | 
| 2456 | 2463 | 
| 2457 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 2464 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 
| 2458   LOperand* context = UseFixed(instr->context(), esi); | 2465   LOperand* context = UseFixed(instr->context(), esi); | 
| 2459   LOperand* object = | 2466   LOperand* object = | 
| 2460       UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 2467       UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); | 
| 2461   LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 2468   LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); | 
|  | 2469   LOperand* slot = NULL; | 
|  | 2470   LOperand* vector = NULL; | 
|  | 2471   if (instr->HasVectorAndSlot()) { | 
|  | 2472     slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); | 
|  | 2473     vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); | 
|  | 2474   } | 
| 2462 | 2475 | 
| 2463   LStoreNamedGeneric* result = | 2476   LStoreNamedGeneric* result = | 
| 2464       new(zone()) LStoreNamedGeneric(context, object, value); | 2477       new (zone()) LStoreNamedGeneric(context, object, value, slot, vector); | 
| 2465   return MarkAsCall(result, instr); | 2478   return MarkAsCall(result, instr); | 
| 2466 } | 2479 } | 
| 2467 | 2480 | 
| 2468 | 2481 | 
| 2469 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 2482 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { | 
| 2470   LOperand* context = UseFixed(instr->context(), esi); | 2483   LOperand* context = UseFixed(instr->context(), esi); | 
| 2471   LOperand* left = UseFixed(instr->left(), edx); | 2484   LOperand* left = UseFixed(instr->left(), edx); | 
| 2472   LOperand* right = UseFixed(instr->right(), eax); | 2485   LOperand* right = UseFixed(instr->right(), eax); | 
| 2473   LStringAdd* string_add = new(zone()) LStringAdd(context, left, right); | 2486   LStringAdd* string_add = new(zone()) LStringAdd(context, left, right); | 
| 2474   return MarkAsCall(DefineFixed(string_add, eax), instr); | 2487   return MarkAsCall(DefineFixed(string_add, eax), instr); | 
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2736   LAllocateBlockContext* result = | 2749   LAllocateBlockContext* result = | 
| 2737       new(zone()) LAllocateBlockContext(context, function); | 2750       new(zone()) LAllocateBlockContext(context, function); | 
| 2738   return MarkAsCall(DefineFixed(result, esi), instr); | 2751   return MarkAsCall(DefineFixed(result, esi), instr); | 
| 2739 } | 2752 } | 
| 2740 | 2753 | 
| 2741 | 2754 | 
| 2742 }  // namespace internal | 2755 }  // namespace internal | 
| 2743 }  // namespace v8 | 2756 }  // namespace v8 | 
| 2744 | 2757 | 
| 2745 #endif  // V8_TARGET_ARCH_X87 | 2758 #endif  // V8_TARGET_ARCH_X87 | 
| OLD | NEW | 
|---|