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

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

Issue 6628012: Refactor polymorphic load and inline function graph construction. (Closed) Base URL: https://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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 } 1267 }
1268 1268
1269 #ifdef DEBUG 1269 #ifdef DEBUG
1270 if (block_id == 0) { 1270 if (block_id == 0) {
1271 BitVector::Iterator iterator(live); 1271 BitVector::Iterator iterator(live);
1272 bool found = false; 1272 bool found = false;
1273 while (!iterator.Done()) { 1273 while (!iterator.Done()) {
1274 found = true; 1274 found = true;
1275 int operand_index = iterator.Current(); 1275 int operand_index = iterator.Current();
1276 PrintF("Function: %s\n", 1276 PrintF("Function: %s\n",
1277 *graph_->info()->function()->debug_name()->ToCString()); 1277 *chunk_->info()->function()->debug_name()->ToCString());
1278 PrintF("Value %d used before first definition!\n", operand_index); 1278 PrintF("Value %d used before first definition!\n", operand_index);
1279 LiveRange* range = LiveRangeFor(operand_index); 1279 LiveRange* range = LiveRangeFor(operand_index);
1280 PrintF("First use is at %d\n", range->first_pos()->pos().Value()); 1280 PrintF("First use is at %d\n", range->first_pos()->pos().Value());
1281 iterator.Advance(); 1281 iterator.Advance();
1282 } 1282 }
1283 ASSERT(!found); 1283 ASSERT(!found);
1284 } 1284 }
1285 #endif 1285 #endif
1286 } 1286 }
1287 } 1287 }
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 LiveRange* current = live_ranges()->at(i); 2084 LiveRange* current = live_ranges()->at(i);
2085 if (current != NULL) current->Verify(); 2085 if (current != NULL) current->Verify();
2086 } 2086 }
2087 } 2087 }
2088 2088
2089 2089
2090 #endif 2090 #endif
2091 2091
2092 2092
2093 } } // namespace v8::internal 2093 } } // namespace v8::internal
OLDNEW
« src/hydrogen.cc ('K') | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698