| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; | 710 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; |
| 711 } | 711 } |
| 712 for (TempIterator it(instr); !it.Done(); it.Advance()) { | 712 for (TempIterator it(instr); !it.Done(); it.Advance()) { |
| 713 LUnallocated* operand = LUnallocated::cast(it.Current()); | 713 LUnallocated* operand = LUnallocated::cast(it.Current()); |
| 714 if (operand->HasFixedPolicy()) ++fixed; | 714 if (operand->HasFixedPolicy()) ++fixed; |
| 715 } | 715 } |
| 716 ASSERT(fixed == 0 || used_at_start == 0); | 716 ASSERT(fixed == 0 || used_at_start == 0); |
| 717 } | 717 } |
| 718 #endif | 718 #endif |
| 719 | 719 |
| 720 // TODO(all): Add support for FLAG_stress_pointer_maps and | 720 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { |
| 721 // FLAG_stress_environments. | 721 instr = AssignPointerMap(instr); |
| 722 } |
| 723 if (FLAG_stress_environments && !instr->HasEnvironment()) { |
| 724 instr = AssignEnvironment(instr); |
| 725 } |
| 722 instr->set_hydrogen_value(current); | 726 instr->set_hydrogen_value(current); |
| 723 chunk_->AddInstruction(instr, current_block_); | 727 chunk_->AddInstruction(instr, current_block_); |
| 724 } | 728 } |
| 725 current_instruction_ = old_current; | 729 current_instruction_ = old_current; |
| 726 } | 730 } |
| 727 | 731 |
| 728 | 732 |
| 729 LInstruction* LChunkBuilder::AssignEnvironment(LInstruction* instr) { | 733 LInstruction* LChunkBuilder::AssignEnvironment(LInstruction* instr) { |
| 730 HEnvironment* hydrogen_env = current_block_->last_environment(); | 734 HEnvironment* hydrogen_env = current_block_->last_environment(); |
| 731 int argument_index_accumulator = 0; | 735 int argument_index_accumulator = 0; |
| (...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2555 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2559 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2556 LOperand* receiver = UseRegister(instr->receiver()); | 2560 LOperand* receiver = UseRegister(instr->receiver()); |
| 2557 LOperand* function = UseRegisterAtStart(instr->function()); | 2561 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2558 LOperand* temp = TempRegister(); | 2562 LOperand* temp = TempRegister(); |
| 2559 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2563 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2560 return AssignEnvironment(DefineAsRegister(result)); | 2564 return AssignEnvironment(DefineAsRegister(result)); |
| 2561 } | 2565 } |
| 2562 | 2566 |
| 2563 | 2567 |
| 2564 } } // namespace v8::internal | 2568 } } // namespace v8::internal |
| OLD | NEW |