Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: src/lithium-allocator.cc

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/jsregexp.cc ('k') | src/liveedit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698