| 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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 if (output == NULL || !output->IsRegister() || | 979 if (output == NULL || !output->IsRegister() || |
| 980 output->index() != i) { | 980 output->index() != i) { |
| 981 LiveRange* range = FixedLiveRangeFor(i); | 981 LiveRange* range = FixedLiveRangeFor(i); |
| 982 range->AddUseInterval(curr_position, | 982 range->AddUseInterval(curr_position, |
| 983 curr_position.InstructionEnd(), | 983 curr_position.InstructionEnd(), |
| 984 zone()); | 984 zone()); |
| 985 } | 985 } |
| 986 } | 986 } |
| 987 } | 987 } |
| 988 | 988 |
| 989 if (instr->ClobbersDoubleRegisters()) { | 989 if (instr->ClobbersDoubleRegisters(isolate())) { |
| 990 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) { | 990 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) { |
| 991 if (output == NULL || !output->IsDoubleRegister() || | 991 if (output == NULL || !output->IsDoubleRegister() || |
| 992 output->index() != i) { | 992 output->index() != i) { |
| 993 LiveRange* range = FixedDoubleLiveRangeFor(i); | 993 LiveRange* range = FixedDoubleLiveRangeFor(i); |
| 994 range->AddUseInterval(curr_position, | 994 range->AddUseInterval(curr_position, |
| 995 curr_position.InstructionEnd(), | 995 curr_position.InstructionEnd(), |
| 996 zone()); | 996 zone()); |
| 997 } | 997 } |
| 998 } | 998 } |
| 999 } | 999 } |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2212 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); | 2212 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 #ifdef DEBUG | 2215 #ifdef DEBUG |
| 2216 if (allocator_ != NULL) allocator_->Verify(); | 2216 if (allocator_ != NULL) allocator_->Verify(); |
| 2217 #endif | 2217 #endif |
| 2218 } | 2218 } |
| 2219 | 2219 |
| 2220 | 2220 |
| 2221 } } // namespace v8::internal | 2221 } } // namespace v8::internal |
| OLD | NEW |