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 2304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2315 return MarkAsCall(new(zone()) LStoreKeyedGeneric(obj, key, val), instr); | 2315 return MarkAsCall(new(zone()) LStoreKeyedGeneric(obj, key, val), instr); |
2316 } | 2316 } |
2317 | 2317 |
2318 | 2318 |
2319 LInstruction* LChunkBuilder::DoTransitionElementsKind( | 2319 LInstruction* LChunkBuilder::DoTransitionElementsKind( |
2320 HTransitionElementsKind* instr) { | 2320 HTransitionElementsKind* instr) { |
2321 LOperand* object = UseRegister(instr->object()); | 2321 LOperand* object = UseRegister(instr->object()); |
2322 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { | 2322 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { |
2323 LOperand* new_map_reg = TempRegister(); | 2323 LOperand* new_map_reg = TempRegister(); |
2324 LTransitionElementsKind* result = | 2324 LTransitionElementsKind* result = |
2325 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL); | 2325 new(zone()) LTransitionElementsKind(object, new_map_reg); |
2326 return result; | 2326 return result; |
2327 } else if (FLAG_compiled_transitions) { | 2327 } else { |
2328 LTransitionElementsKind* result = | 2328 LTransitionElementsKind* result = |
2329 new(zone()) LTransitionElementsKind(object, NULL, NULL); | 2329 new(zone()) LTransitionElementsKind(object, NULL); |
2330 return AssignPointerMap(result); | 2330 return AssignPointerMap(result); |
2331 } else { | |
2332 LOperand* object = UseFixed(instr->object(), r0); | |
2333 LOperand* fixed_object_reg = FixedTemp(r2); | |
2334 LOperand* new_map_reg = FixedTemp(r3); | |
2335 LTransitionElementsKind* result = | |
2336 new(zone()) LTransitionElementsKind(object, | |
2337 new_map_reg, | |
2338 fixed_object_reg); | |
2339 return MarkAsCall(result, instr); | |
2340 } | 2331 } |
2341 } | 2332 } |
2342 | 2333 |
2343 | 2334 |
2344 LInstruction* LChunkBuilder::DoTrapAllocationMemento( | 2335 LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
2345 HTrapAllocationMemento* instr) { | 2336 HTrapAllocationMemento* instr) { |
2346 LOperand* object = UseRegister(instr->object()); | 2337 LOperand* object = UseRegister(instr->object()); |
2347 LOperand* temp = TempRegister(); | 2338 LOperand* temp = TempRegister(); |
2348 LTrapAllocationMemento* result = | 2339 LTrapAllocationMemento* result = |
2349 new(zone()) LTrapAllocationMemento(object, temp); | 2340 new(zone()) LTrapAllocationMemento(object, temp); |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2646 | 2637 |
2647 | 2638 |
2648 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2639 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2649 LOperand* object = UseRegister(instr->object()); | 2640 LOperand* object = UseRegister(instr->object()); |
2650 LOperand* index = UseRegister(instr->index()); | 2641 LOperand* index = UseRegister(instr->index()); |
2651 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2642 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2652 } | 2643 } |
2653 | 2644 |
2654 | 2645 |
2655 } } // namespace v8::internal | 2646 } } // namespace v8::internal |
OLD | NEW |