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 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; | 876 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; |
877 } | 877 } |
878 for (TempIterator it(instr); !it.Done(); it.Advance()) { | 878 for (TempIterator it(instr); !it.Done(); it.Advance()) { |
879 LUnallocated* operand = LUnallocated::cast(it.Current()); | 879 LUnallocated* operand = LUnallocated::cast(it.Current()); |
880 if (operand->HasFixedPolicy()) ++fixed; | 880 if (operand->HasFixedPolicy()) ++fixed; |
881 } | 881 } |
882 ASSERT(fixed == 0 || used_at_start == 0); | 882 ASSERT(fixed == 0 || used_at_start == 0); |
883 } | 883 } |
884 #endif | 884 #endif |
885 | 885 |
| 886 instr->set_position(position_); |
886 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { | 887 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { |
887 instr = AssignPointerMap(instr); | 888 instr = AssignPointerMap(instr); |
888 } | 889 } |
889 if (FLAG_stress_environments && !instr->HasEnvironment()) { | 890 if (FLAG_stress_environments && !instr->HasEnvironment()) { |
890 instr = AssignEnvironment(instr); | 891 instr = AssignEnvironment(instr); |
891 } | 892 } |
892 instr->set_hydrogen_value(current); | 893 instr->set_hydrogen_value(current); |
893 chunk_->AddInstruction(instr, current_block_); | 894 chunk_->AddInstruction(instr, current_block_); |
894 } | 895 } |
895 current_instruction_ = old_current; | 896 current_instruction_ = old_current; |
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2590 | 2591 |
2591 | 2592 |
2592 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2593 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2593 LOperand* object = UseRegister(instr->object()); | 2594 LOperand* object = UseRegister(instr->object()); |
2594 LOperand* index = UseRegister(instr->index()); | 2595 LOperand* index = UseRegister(instr->index()); |
2595 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2596 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2596 } | 2597 } |
2597 | 2598 |
2598 | 2599 |
2599 } } // namespace v8::internal | 2600 } } // namespace v8::internal |
OLD | NEW |