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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; | 893 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; |
894 } | 894 } |
895 for (TempIterator it(instr); !it.Done(); it.Advance()) { | 895 for (TempIterator it(instr); !it.Done(); it.Advance()) { |
896 LUnallocated* operand = LUnallocated::cast(it.Current()); | 896 LUnallocated* operand = LUnallocated::cast(it.Current()); |
897 if (operand->HasFixedPolicy()) ++fixed; | 897 if (operand->HasFixedPolicy()) ++fixed; |
898 } | 898 } |
899 ASSERT(fixed == 0 || used_at_start == 0); | 899 ASSERT(fixed == 0 || used_at_start == 0); |
900 } | 900 } |
901 #endif | 901 #endif |
902 | 902 |
| 903 instr->set_position(position_); |
| 904 |
903 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { | 905 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { |
904 instr = AssignPointerMap(instr); | 906 instr = AssignPointerMap(instr); |
905 } | 907 } |
906 if (FLAG_stress_environments && !instr->HasEnvironment()) { | 908 if (FLAG_stress_environments && !instr->HasEnvironment()) { |
907 instr = AssignEnvironment(instr); | 909 instr = AssignEnvironment(instr); |
908 } | 910 } |
909 instr->set_hydrogen_value(current); | 911 instr->set_hydrogen_value(current); |
910 chunk_->AddInstruction(instr, current_block_); | 912 chunk_->AddInstruction(instr, current_block_); |
911 } | 913 } |
912 current_instruction_ = old_current; | 914 current_instruction_ = old_current; |
(...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2554 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2556 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2555 LOperand* object = UseRegister(instr->object()); | 2557 LOperand* object = UseRegister(instr->object()); |
2556 LOperand* index = UseTempRegister(instr->index()); | 2558 LOperand* index = UseTempRegister(instr->index()); |
2557 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2559 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2558 } | 2560 } |
2559 | 2561 |
2560 | 2562 |
2561 } } // namespace v8::internal | 2563 } } // namespace v8::internal |
2562 | 2564 |
2563 #endif // V8_TARGET_ARCH_X64 | 2565 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |