| 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 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2068 } | 2068 } |
| 2069 | 2069 |
| 2070 | 2070 |
| 2071 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2071 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
| 2072 HTransitionElementsKind* instr) { | 2072 HTransitionElementsKind* instr) { |
| 2073 LOperand* object = UseRegister(instr->object()); | 2073 LOperand* object = UseRegister(instr->object()); |
| 2074 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2074 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
| 2075 LOperand* new_map_reg = TempRegister(); | 2075 LOperand* new_map_reg = TempRegister(); |
| 2076 LTransitionElementsKind* result = | 2076 LTransitionElementsKind* result = |
| 2077 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL); | 2077 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL); |
| 2078 return DefineSameAsFirst(result); | 2078 return result; |
| 2079 } else if (FLAG_compiled_transitions) { | 2079 } else if (FLAG_compiled_transitions) { |
| 2080 LTransitionElementsKind* result = | 2080 LTransitionElementsKind* result = |
| 2081 new(zone()) LTransitionElementsKind(object, NULL, NULL); | 2081 new(zone()) LTransitionElementsKind(object, NULL, NULL); |
| 2082 return AssignPointerMap(result); | 2082 return AssignPointerMap(result); |
| 2083 } else { | 2083 } else { |
| 2084 LOperand* object = UseFixed(instr->object(), a0); | 2084 LOperand* object = UseFixed(instr->object(), a0); |
| 2085 LOperand* fixed_object_reg = FixedTemp(a2); | 2085 LOperand* fixed_object_reg = FixedTemp(a2); |
| 2086 LOperand* new_map_reg = FixedTemp(a3); | 2086 LOperand* new_map_reg = FixedTemp(a3); |
| 2087 LTransitionElementsKind* result = | 2087 LTransitionElementsKind* result = |
| 2088 new(zone()) LTransitionElementsKind(object, | 2088 new(zone()) LTransitionElementsKind(object, |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2410 | 2410 |
| 2411 | 2411 |
| 2412 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2412 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2413 LOperand* object = UseRegister(instr->object()); | 2413 LOperand* object = UseRegister(instr->object()); |
| 2414 LOperand* index = UseRegister(instr->index()); | 2414 LOperand* index = UseRegister(instr->index()); |
| 2415 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2415 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2416 } | 2416 } |
| 2417 | 2417 |
| 2418 | 2418 |
| 2419 } } // namespace v8::internal | 2419 } } // namespace v8::internal |
| OLD | NEW |