Chromium Code Reviews| 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 : zone_(), |
|
Michael Starzinger
2015/01/23 14:21:11
nit: Explicit initializer call could be dropped.
danno
2015/01/23 14:45:20
Done.
| |
| 515 chunk_(NULL), | 515 chunk_(NULL), |
| 516 live_in_sets_(graph->blocks()->length(), zone()), | 516 live_in_sets_(graph->blocks()->length(), zone()), |
| 517 live_ranges_(num_values * 2, zone()), | 517 live_ranges_(num_values * 2, zone()), |
| 518 fixed_live_ranges_(NULL), | 518 fixed_live_ranges_(NULL), |
| 519 fixed_double_live_ranges_(NULL), | 519 fixed_double_live_ranges_(NULL), |
| 520 unhandled_live_ranges_(num_values * 2, zone()), | 520 unhandled_live_ranges_(num_values * 2, zone()), |
| 521 active_live_ranges_(8, zone()), | 521 active_live_ranges_(8, zone()), |
| 522 inactive_live_ranges_(8, zone()), | 522 inactive_live_ranges_(8, zone()), |
| 523 reusable_slots_(8, zone()), | 523 reusable_slots_(8, zone()), |
| 524 next_virtual_register_(num_values), | 524 next_virtual_register_(num_values), |
| (...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2185 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); | 2185 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); |
| 2186 } | 2186 } |
| 2187 | 2187 |
| 2188 #ifdef DEBUG | 2188 #ifdef DEBUG |
| 2189 if (allocator_ != NULL) allocator_->Verify(); | 2189 if (allocator_ != NULL) allocator_->Verify(); |
| 2190 #endif | 2190 #endif |
| 2191 } | 2191 } |
| 2192 | 2192 |
| 2193 | 2193 |
| 2194 } } // namespace v8::internal | 2194 } } // namespace v8::internal |
| OLD | NEW |