| OLD | NEW |
| 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 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 } | 1273 } |
| 1274 | 1274 |
| 1275 #ifdef DEBUG | 1275 #ifdef DEBUG |
| 1276 if (block_id == 0) { | 1276 if (block_id == 0) { |
| 1277 BitVector::Iterator iterator(live); | 1277 BitVector::Iterator iterator(live); |
| 1278 bool found = false; | 1278 bool found = false; |
| 1279 while (!iterator.Done()) { | 1279 while (!iterator.Done()) { |
| 1280 found = true; | 1280 found = true; |
| 1281 int operand_index = iterator.Current(); | 1281 int operand_index = iterator.Current(); |
| 1282 PrintF("Function: %s\n", | 1282 PrintF("Function: %s\n", |
| 1283 *graph_->info()->function()->debug_name()->ToCString()); | 1283 *chunk_->info()->function()->debug_name()->ToCString()); |
| 1284 PrintF("Value %d used before first definition!\n", operand_index); | 1284 PrintF("Value %d used before first definition!\n", operand_index); |
| 1285 LiveRange* range = LiveRangeFor(operand_index); | 1285 LiveRange* range = LiveRangeFor(operand_index); |
| 1286 PrintF("First use is at %d\n", range->first_pos()->pos().Value()); | 1286 PrintF("First use is at %d\n", range->first_pos()->pos().Value()); |
| 1287 iterator.Advance(); | 1287 iterator.Advance(); |
| 1288 } | 1288 } |
| 1289 ASSERT(!found); | 1289 ASSERT(!found); |
| 1290 } | 1290 } |
| 1291 #endif | 1291 #endif |
| 1292 } | 1292 } |
| 1293 } | 1293 } |
| (...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2081 LiveRange* current = live_ranges()->at(i); | 2081 LiveRange* current = live_ranges()->at(i); |
| 2082 if (current != NULL) current->Verify(); | 2082 if (current != NULL) current->Verify(); |
| 2083 } | 2083 } |
| 2084 } | 2084 } |
| 2085 | 2085 |
| 2086 | 2086 |
| 2087 #endif | 2087 #endif |
| 2088 | 2088 |
| 2089 | 2089 |
| 2090 } } // namespace v8::internal | 2090 } } // namespace v8::internal |
| OLD | NEW |