OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 iterator.Advance(); | 1331 iterator.Advance(); |
1332 } | 1332 } |
1333 | 1333 |
1334 for (int i = block->block_id() + 1; i <= back_edge->block_id(); ++i) { | 1334 for (int i = block->block_id() + 1; i <= back_edge->block_id(); ++i) { |
1335 live_in_sets_[i]->Union(*live); | 1335 live_in_sets_[i]->Union(*live); |
1336 } | 1336 } |
1337 } | 1337 } |
1338 | 1338 |
1339 #ifdef DEBUG | 1339 #ifdef DEBUG |
1340 if (block_id == 0) { | 1340 if (block_id == 0) { |
| 1341 ALLOW_HANDLE_DEREF(isolate(), "Printing debug information"); |
1341 BitVector::Iterator iterator(live); | 1342 BitVector::Iterator iterator(live); |
1342 bool found = false; | 1343 bool found = false; |
1343 while (!iterator.Done()) { | 1344 while (!iterator.Done()) { |
1344 found = true; | 1345 found = true; |
1345 int operand_index = iterator.Current(); | 1346 int operand_index = iterator.Current(); |
1346 if (chunk_->info()->IsStub()) { | 1347 if (chunk_->info()->IsStub()) { |
1347 CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey(); | 1348 CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey(); |
1348 PrintF("Function: %s\n", CodeStub::MajorName(major_key, false)); | 1349 PrintF("Function: %s\n", CodeStub::MajorName(major_key, false)); |
1349 } else { | 1350 } else { |
1350 ASSERT(chunk_->info()->IsOptimizing()); | 1351 ASSERT(chunk_->info()->IsOptimizing()); |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2185 LiveRange* current = live_ranges()->at(i); | 2186 LiveRange* current = live_ranges()->at(i); |
2186 if (current != NULL) current->Verify(); | 2187 if (current != NULL) current->Verify(); |
2187 } | 2188 } |
2188 } | 2189 } |
2189 | 2190 |
2190 | 2191 |
2191 #endif | 2192 #endif |
2192 | 2193 |
2193 | 2194 |
2194 } } // namespace v8::internal | 2195 } } // namespace v8::internal |
OLD | NEW |