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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; | 883 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; |
884 } | 884 } |
885 for (TempIterator it(instr); !it.Done(); it.Advance()) { | 885 for (TempIterator it(instr); !it.Done(); it.Advance()) { |
886 LUnallocated* operand = LUnallocated::cast(it.Current()); | 886 LUnallocated* operand = LUnallocated::cast(it.Current()); |
887 if (operand->HasFixedPolicy()) ++fixed; | 887 if (operand->HasFixedPolicy()) ++fixed; |
888 } | 888 } |
889 ASSERT(fixed == 0 || used_at_start == 0); | 889 ASSERT(fixed == 0 || used_at_start == 0); |
890 } | 890 } |
891 #endif | 891 #endif |
892 | 892 |
| 893 instr->set_position(position_); |
893 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { | 894 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { |
894 instr = AssignPointerMap(instr); | 895 instr = AssignPointerMap(instr); |
895 } | 896 } |
896 if (FLAG_stress_environments && !instr->HasEnvironment()) { | 897 if (FLAG_stress_environments && !instr->HasEnvironment()) { |
897 instr = AssignEnvironment(instr); | 898 instr = AssignEnvironment(instr); |
898 } | 899 } |
899 instr->set_hydrogen_value(current); | 900 instr->set_hydrogen_value(current); |
900 chunk_->AddInstruction(instr, current_block_); | 901 chunk_->AddInstruction(instr, current_block_); |
901 } | 902 } |
902 current_instruction_ = old_current; | 903 current_instruction_ = old_current; |
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2530 | 2531 |
2531 | 2532 |
2532 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2533 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2533 LOperand* object = UseRegister(instr->object()); | 2534 LOperand* object = UseRegister(instr->object()); |
2534 LOperand* index = UseRegister(instr->index()); | 2535 LOperand* index = UseRegister(instr->index()); |
2535 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2536 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2536 } | 2537 } |
2537 | 2538 |
2538 | 2539 |
2539 } } // namespace v8::internal | 2540 } } // namespace v8::internal |
OLD | NEW |