| 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 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2198 } | 2198 } |
| 2199 | 2199 |
| 2200 | 2200 |
| 2201 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2201 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
| 2202 HTransitionElementsKind* instr) { | 2202 HTransitionElementsKind* instr) { |
| 2203 LOperand* object = UseRegister(instr->object()); | 2203 LOperand* object = UseRegister(instr->object()); |
| 2204 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2204 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
| 2205 LOperand* new_map_reg = TempRegister(); | 2205 LOperand* new_map_reg = TempRegister(); |
| 2206 LTransitionElementsKind* result = | 2206 LTransitionElementsKind* result = |
| 2207 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL); | 2207 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL); |
| 2208 return DefineSameAsFirst(result); | 2208 return result; |
| 2209 } else if (FLAG_compiled_transitions) { | 2209 } else if (FLAG_compiled_transitions) { |
| 2210 LTransitionElementsKind* result = | 2210 LTransitionElementsKind* result = |
| 2211 new(zone()) LTransitionElementsKind(object, NULL, NULL); | 2211 new(zone()) LTransitionElementsKind(object, NULL, NULL); |
| 2212 return AssignPointerMap(result); | 2212 return AssignPointerMap(result); |
| 2213 } else { | 2213 } else { |
| 2214 LOperand* object = UseFixed(instr->object(), r0); | 2214 LOperand* object = UseFixed(instr->object(), r0); |
| 2215 LOperand* fixed_object_reg = FixedTemp(r2); | 2215 LOperand* fixed_object_reg = FixedTemp(r2); |
| 2216 LOperand* new_map_reg = FixedTemp(r3); | 2216 LOperand* new_map_reg = FixedTemp(r3); |
| 2217 LTransitionElementsKind* result = | 2217 LTransitionElementsKind* result = |
| 2218 new(zone()) LTransitionElementsKind(object, | 2218 new(zone()) LTransitionElementsKind(object, |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2540 | 2540 |
| 2541 | 2541 |
| 2542 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2542 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2543 LOperand* object = UseRegister(instr->object()); | 2543 LOperand* object = UseRegister(instr->object()); |
| 2544 LOperand* index = UseRegister(instr->index()); | 2544 LOperand* index = UseRegister(instr->index()); |
| 2545 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2545 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2546 } | 2546 } |
| 2547 | 2547 |
| 2548 | 2548 |
| 2549 } } // namespace v8::internal | 2549 } } // namespace v8::internal |
| OLD | NEW |