| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2085 ASSERT(instr->value()->representation().IsTagged()); | 2085 ASSERT(instr->value()->representation().IsTagged()); |
| 2086 | 2086 |
| 2087 LStoreKeyedGeneric* result = | 2087 LStoreKeyedGeneric* result = |
| 2088 new(zone()) LStoreKeyedGeneric(context, object, key, value); | 2088 new(zone()) LStoreKeyedGeneric(context, object, key, value); |
| 2089 return MarkAsCall(result, instr); | 2089 return MarkAsCall(result, instr); |
| 2090 } | 2090 } |
| 2091 | 2091 |
| 2092 | 2092 |
| 2093 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2093 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
| 2094 HTransitionElementsKind* instr) { | 2094 HTransitionElementsKind* instr) { |
| 2095 if (instr->original_map()->elements_kind() == FAST_SMI_ONLY_ELEMENTS && | 2095 ElementsKind from_kind = instr->original_map()->elements_kind(); |
| 2096 instr->transitioned_map()->elements_kind() == FAST_ELEMENTS) { | 2096 ElementsKind to_kind = instr->transitioned_map()->elements_kind(); |
| 2097 if (IsSimpleMapChangeTransition(from_kind, to_kind)) { |
| 2097 LOperand* object = UseRegister(instr->object()); | 2098 LOperand* object = UseRegister(instr->object()); |
| 2098 LOperand* new_map_reg = TempRegister(); | 2099 LOperand* new_map_reg = TempRegister(); |
| 2099 LOperand* temp_reg = TempRegister(); | 2100 LOperand* temp_reg = TempRegister(); |
| 2100 LTransitionElementsKind* result = | 2101 LTransitionElementsKind* result = |
| 2101 new(zone()) LTransitionElementsKind(object, new_map_reg, temp_reg); | 2102 new(zone()) LTransitionElementsKind(object, new_map_reg, temp_reg); |
| 2102 return DefineSameAsFirst(result); | 2103 return DefineSameAsFirst(result); |
| 2103 } else { | 2104 } else { |
| 2104 LOperand* object = UseFixed(instr->object(), eax); | 2105 LOperand* object = UseFixed(instr->object(), eax); |
| 2105 LOperand* fixed_object_reg = FixedTemp(edx); | 2106 LOperand* fixed_object_reg = FixedTemp(edx); |
| 2106 LOperand* new_map_reg = FixedTemp(ebx); | 2107 LOperand* new_map_reg = FixedTemp(ebx); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2430 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2431 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2431 LOperand* object = UseRegister(instr->object()); | 2432 LOperand* object = UseRegister(instr->object()); |
| 2432 LOperand* index = UseTempRegister(instr->index()); | 2433 LOperand* index = UseTempRegister(instr->index()); |
| 2433 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2434 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2434 } | 2435 } |
| 2435 | 2436 |
| 2436 | 2437 |
| 2437 } } // namespace v8::internal | 2438 } } // namespace v8::internal |
| 2438 | 2439 |
| 2439 #endif // V8_TARGET_ARCH_IA32 | 2440 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |