| 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 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2614 | 2615 |
| 2615 | 2616 |
| 2616 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2617 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2617 LOperand* object = UseRegister(instr->object()); | 2618 LOperand* object = UseRegister(instr->object()); |
| 2618 LOperand* index = UseRegister(instr->index()); | 2619 LOperand* index = UseRegister(instr->index()); |
| 2619 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2620 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2620 } | 2621 } |
| 2621 | 2622 |
| 2622 | 2623 |
| 2623 } } // namespace v8::internal | 2624 } } // namespace v8::internal |
| OLD | NEW |