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

Side by Side Diff: src/hydrogen.cc

Issue 6660023: Initialize zone lists in the register allocator with more reasonable initial ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/lithium-allocator.h » ('j') | src/lithium-allocator.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5716 matching lines...) Expand 10 before | Expand all | Expand 10 after
5727 } 5727 }
5728 } 5728 }
5729 } 5729 }
5730 } 5730 }
5731 5731
5732 5732
5733 void HTracer::TraceLiveRanges(const char* name, LAllocator* allocator) { 5733 void HTracer::TraceLiveRanges(const char* name, LAllocator* allocator) {
5734 Tag tag(this, "intervals"); 5734 Tag tag(this, "intervals");
5735 PrintStringProperty("name", name); 5735 PrintStringProperty("name", name);
5736 5736
5737 const ZoneList<LiveRange*>* fixed_d = allocator->fixed_double_live_ranges(); 5737 const Vector<LiveRange*>* fixed_d = allocator->fixed_double_live_ranges();
5738 for (int i = 0; i < fixed_d->length(); ++i) { 5738 for (int i = 0; i < fixed_d->length(); ++i) {
5739 TraceLiveRange(fixed_d->at(i), "fixed"); 5739 TraceLiveRange(fixed_d->at(i), "fixed");
5740 } 5740 }
5741 5741
5742 const ZoneList<LiveRange*>* fixed = allocator->fixed_live_ranges(); 5742 const Vector<LiveRange*>* fixed = allocator->fixed_live_ranges();
5743 for (int i = 0; i < fixed->length(); ++i) { 5743 for (int i = 0; i < fixed->length(); ++i) {
5744 TraceLiveRange(fixed->at(i), "fixed"); 5744 TraceLiveRange(fixed->at(i), "fixed");
5745 } 5745 }
5746 5746
5747 const ZoneList<LiveRange*>* live_ranges = allocator->live_ranges(); 5747 const ZoneList<LiveRange*>* live_ranges = allocator->live_ranges();
5748 for (int i = 0; i < live_ranges->length(); ++i) { 5748 for (int i = 0; i < live_ranges->length(); ++i) {
5749 TraceLiveRange(live_ranges->at(i), "object"); 5749 TraceLiveRange(live_ranges->at(i), "object");
5750 } 5750 }
5751 } 5751 }
5752 5752
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
5894 } 5894 }
5895 } 5895 }
5896 5896
5897 #ifdef DEBUG 5897 #ifdef DEBUG
5898 if (graph_ != NULL) graph_->Verify(); 5898 if (graph_ != NULL) graph_->Verify();
5899 if (allocator_ != NULL) allocator_->Verify(); 5899 if (allocator_ != NULL) allocator_->Verify();
5900 #endif 5900 #endif
5901 } 5901 }
5902 5902
5903 } } // namespace v8::internal 5903 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/lithium-allocator.h » ('j') | src/lithium-allocator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698