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 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 return MarkAsCall(new(zone()) LStoreKeyedGeneric(obj, key, val), instr); | 2238 return MarkAsCall(new(zone()) LStoreKeyedGeneric(obj, key, val), instr); |
2239 } | 2239 } |
2240 | 2240 |
2241 | 2241 |
2242 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2242 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
2243 HTransitionElementsKind* instr) { | 2243 HTransitionElementsKind* instr) { |
2244 LOperand* object = UseRegister(instr->object()); | 2244 LOperand* object = UseRegister(instr->object()); |
2245 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2245 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
2246 LOperand* new_map_reg = TempRegister(); | 2246 LOperand* new_map_reg = TempRegister(); |
2247 LTransitionElementsKind* result = | 2247 LTransitionElementsKind* result = |
2248 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL); | 2248 new(zone()) LTransitionElementsKind(object, new_map_reg); |
2249 return result; | 2249 return result; |
2250 } else if (FLAG_compiled_transitions) { | 2250 } else { |
2251 LTransitionElementsKind* result = | 2251 LTransitionElementsKind* result = |
2252 new(zone()) LTransitionElementsKind(object, NULL, NULL); | 2252 new(zone()) LTransitionElementsKind(object, NULL); |
2253 return AssignPointerMap(result); | 2253 return AssignPointerMap(result); |
2254 } else { | |
2255 LOperand* object = UseFixed(instr->object(), a0); | |
2256 LOperand* fixed_object_reg = FixedTemp(a2); | |
2257 LOperand* new_map_reg = FixedTemp(a3); | |
2258 LTransitionElementsKind* result = | |
2259 new(zone()) LTransitionElementsKind(object, | |
2260 new_map_reg, | |
2261 fixed_object_reg); | |
2262 return MarkAsCall(result, instr); | |
2263 } | 2254 } |
2264 } | 2255 } |
2265 | 2256 |
2266 | 2257 |
2267 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2258 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
2268 HTrapAllocationMemento* instr) { | 2259 HTrapAllocationMemento* instr) { |
2269 LOperand* object = UseRegister(instr->object()); | 2260 LOperand* object = UseRegister(instr->object()); |
2270 LOperand* temp = TempRegister(); | 2261 LOperand* temp = TempRegister(); |
2271 LTrapAllocationMemento* result = | 2262 LTrapAllocationMemento* result = |
2272 new(zone()) LTrapAllocationMemento(object, temp); | 2263 new(zone()) LTrapAllocationMemento(object, temp); |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 | 2560 |
2570 | 2561 |
2571 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2562 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2572 LOperand* object = UseRegister(instr->object()); | 2563 LOperand* object = UseRegister(instr->object()); |
2573 LOperand* index = UseRegister(instr->index()); | 2564 LOperand* index = UseRegister(instr->index()); |
2574 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2565 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2575 } | 2566 } |
2576 | 2567 |
2577 | 2568 |
2578 } } // namespace v8::internal | 2569 } } // namespace v8::internal |
OLD | NEW |