| 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/hydrogen.h" | 7 #include "src/hydrogen.h" |
| 8 #include "src/lithium-inl.h" | 8 #include "src/lithium-inl.h" |
| 9 #include "src/lithium-allocator-inl.h" | 9 #include "src/lithium-allocator-inl.h" |
| 10 #include "src/string-stream.h" | 10 #include "src/string-stream.h" |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 AdvanceLastProcessedMarker(a, advance_last_processed_up_to); | 504 AdvanceLastProcessedMarker(a, advance_last_processed_up_to); |
| 505 } else { | 505 } else { |
| 506 b = b->next(); | 506 b = b->next(); |
| 507 } | 507 } |
| 508 } | 508 } |
| 509 return LifetimePosition::Invalid(); | 509 return LifetimePosition::Invalid(); |
| 510 } | 510 } |
| 511 | 511 |
| 512 | 512 |
| 513 LAllocator::LAllocator(int num_values, HGraph* graph) | 513 LAllocator::LAllocator(int num_values, HGraph* graph) |
| 514 : zone_(graph->isolate()), | 514 : chunk_(NULL), |
| 515 chunk_(NULL), | |
| 516 live_in_sets_(graph->blocks()->length(), zone()), | 515 live_in_sets_(graph->blocks()->length(), zone()), |
| 517 live_ranges_(num_values * 2, zone()), | 516 live_ranges_(num_values * 2, zone()), |
| 518 fixed_live_ranges_(NULL), | 517 fixed_live_ranges_(NULL), |
| 519 fixed_double_live_ranges_(NULL), | 518 fixed_double_live_ranges_(NULL), |
| 520 unhandled_live_ranges_(num_values * 2, zone()), | 519 unhandled_live_ranges_(num_values * 2, zone()), |
| 521 active_live_ranges_(8, zone()), | 520 active_live_ranges_(8, zone()), |
| 522 inactive_live_ranges_(8, zone()), | 521 inactive_live_ranges_(8, zone()), |
| 523 reusable_slots_(8, zone()), | 522 reusable_slots_(8, zone()), |
| 524 next_virtual_register_(num_values), | 523 next_virtual_register_(num_values), |
| 525 first_artificial_register_(num_values), | 524 first_artificial_register_(num_values), |
| (...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2185 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); | 2184 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); |
| 2186 } | 2185 } |
| 2187 | 2186 |
| 2188 #ifdef DEBUG | 2187 #ifdef DEBUG |
| 2189 if (allocator_ != NULL) allocator_->Verify(); | 2188 if (allocator_ != NULL) allocator_->Verify(); |
| 2190 #endif | 2189 #endif |
| 2191 } | 2190 } |
| 2192 | 2191 |
| 2193 | 2192 |
| 2194 } } // namespace v8::internal | 2193 } } // namespace v8::internal |
| OLD | NEW |