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