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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 if (output == NULL || !output->IsRegister() || | 951 if (output == NULL || !output->IsRegister() || |
952 output->index() != i) { | 952 output->index() != i) { |
953 LiveRange* range = FixedLiveRangeFor(i); | 953 LiveRange* range = FixedLiveRangeFor(i); |
954 range->AddUseInterval(curr_position, | 954 range->AddUseInterval(curr_position, |
955 curr_position.InstructionEnd(), | 955 curr_position.InstructionEnd(), |
956 zone_); | 956 zone_); |
957 } | 957 } |
958 } | 958 } |
959 } | 959 } |
960 | 960 |
961 if (instr->IsMarkedAsCall() || instr->IsMarkedAsSaveDoubles()) { | 961 if (instr->IsMarkedAsCall()) { |
962 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; ++i) { | 962 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; ++i) { |
963 if (output == NULL || !output->IsDoubleRegister() || | 963 if (output == NULL || !output->IsDoubleRegister() || |
964 output->index() != i) { | 964 output->index() != i) { |
965 LiveRange* range = FixedDoubleLiveRangeFor(i); | 965 LiveRange* range = FixedDoubleLiveRangeFor(i); |
966 range->AddUseInterval(curr_position, | 966 range->AddUseInterval(curr_position, |
967 curr_position.InstructionEnd(), | 967 curr_position.InstructionEnd(), |
968 zone_); | 968 zone_); |
969 } | 969 } |
970 } | 970 } |
971 } | 971 } |
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 LiveRange* current = live_ranges()->at(i); | 2109 LiveRange* current = live_ranges()->at(i); |
2110 if (current != NULL) current->Verify(); | 2110 if (current != NULL) current->Verify(); |
2111 } | 2111 } |
2112 } | 2112 } |
2113 | 2113 |
2114 | 2114 |
2115 #endif | 2115 #endif |
2116 | 2116 |
2117 | 2117 |
2118 } } // namespace v8::internal | 2118 } } // namespace v8::internal |
OLD | NEW |