OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 bool is_tagged = HasTaggedValue(cur_input->virtual_register()); | 848 bool is_tagged = HasTaggedValue(cur_input->virtual_register()); |
849 AllocateFixed(cur_input, gap_index + 1, is_tagged); | 849 AllocateFixed(cur_input, gap_index + 1, is_tagged); |
850 AddConstraintsGapMove(gap_index, input_copy, cur_input); | 850 AddConstraintsGapMove(gap_index, input_copy, cur_input); |
851 } else if (cur_input->policy() == LUnallocated::WRITABLE_REGISTER) { | 851 } else if (cur_input->policy() == LUnallocated::WRITABLE_REGISTER) { |
852 // The live range of writable input registers always goes until the end | 852 // The live range of writable input registers always goes until the end |
853 // of the instruction. | 853 // of the instruction. |
854 ASSERT(!cur_input->IsUsedAtStart()); | 854 ASSERT(!cur_input->IsUsedAtStart()); |
855 | 855 |
856 LUnallocated* input_copy = cur_input->CopyUnconstrained(); | 856 LUnallocated* input_copy = cur_input->CopyUnconstrained(); |
857 cur_input->set_virtual_register(GetVirtualRegister()); | 857 cur_input->set_virtual_register(GetVirtualRegister()); |
858 if(!AllocationOk()) return; | 858 if (!AllocationOk()) return; |
859 | 859 |
860 if (RequiredRegisterKind(input_copy->virtual_register()) == | 860 if (RequiredRegisterKind(input_copy->virtual_register()) == |
861 DOUBLE_REGISTERS) { | 861 DOUBLE_REGISTERS) { |
862 double_artificial_registers_.Add( | 862 double_artificial_registers_.Add( |
863 cur_input->virtual_register() - first_artificial_register_); | 863 cur_input->virtual_register() - first_artificial_register_); |
864 } | 864 } |
865 | 865 |
866 AddConstraintsGapMove(gap_index, input_copy, cur_input); | 866 AddConstraintsGapMove(gap_index, input_copy, cur_input); |
867 } | 867 } |
868 } | 868 } |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2119 LiveRange* current = live_ranges()->at(i); | 2119 LiveRange* current = live_ranges()->at(i); |
2120 if (current != NULL) current->Verify(); | 2120 if (current != NULL) current->Verify(); |
2121 } | 2121 } |
2122 } | 2122 } |
2123 | 2123 |
2124 | 2124 |
2125 #endif | 2125 #endif |
2126 | 2126 |
2127 | 2127 |
2128 } } // namespace v8::internal | 2128 } } // namespace v8::internal |
OLD | NEW |