| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "v8.h" |
| 6 #include "lithium-allocator-inl.h" | 6 #include "lithium-allocator-inl.h" |
| 7 | 7 |
| 8 #include "hydrogen.h" | 8 #include "hydrogen.h" |
| 9 #include "string-stream.h" | 9 #include "string-stream.h" |
| 10 | 10 |
| (...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 if (output == NULL || !output->IsRegister() || | 956 if (output == NULL || !output->IsRegister() || |
| 957 output->index() != i) { | 957 output->index() != i) { |
| 958 LiveRange* range = FixedLiveRangeFor(i); | 958 LiveRange* range = FixedLiveRangeFor(i); |
| 959 range->AddUseInterval(curr_position, | 959 range->AddUseInterval(curr_position, |
| 960 curr_position.InstructionEnd(), | 960 curr_position.InstructionEnd(), |
| 961 zone()); | 961 zone()); |
| 962 } | 962 } |
| 963 } | 963 } |
| 964 } | 964 } |
| 965 | 965 |
| 966 if (instr->ClobbersDoubleRegisters()) { | 966 if (instr->ClobbersDoubleRegisters(isolate())) { |
| 967 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) { | 967 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) { |
| 968 if (output == NULL || !output->IsDoubleRegister() || | 968 if (output == NULL || !output->IsDoubleRegister() || |
| 969 output->index() != i) { | 969 output->index() != i) { |
| 970 LiveRange* range = FixedDoubleLiveRangeFor(i); | 970 LiveRange* range = FixedDoubleLiveRangeFor(i); |
| 971 range->AddUseInterval(curr_position, | 971 range->AddUseInterval(curr_position, |
| 972 curr_position.InstructionEnd(), | 972 curr_position.InstructionEnd(), |
| 973 zone()); | 973 zone()); |
| 974 } | 974 } |
| 975 } | 975 } |
| 976 } | 976 } |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2189 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); | 2189 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); |
| 2190 } | 2190 } |
| 2191 | 2191 |
| 2192 #ifdef DEBUG | 2192 #ifdef DEBUG |
| 2193 if (allocator_ != NULL) allocator_->Verify(); | 2193 if (allocator_ != NULL) allocator_->Verify(); |
| 2194 #endif | 2194 #endif |
| 2195 } | 2195 } |
| 2196 | 2196 |
| 2197 | 2197 |
| 2198 } } // namespace v8::internal | 2198 } } // namespace v8::internal |
| OLD | NEW |