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 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1362 while (!iterator.Done()) { | 1362 while (!iterator.Done()) { |
1363 found = true; | 1363 found = true; |
1364 int operand_index = iterator.Current(); | 1364 int operand_index = iterator.Current(); |
1365 if (chunk_->info()->IsStub()) { | 1365 if (chunk_->info()->IsStub()) { |
1366 CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey(); | 1366 CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey(); |
1367 PrintF("Function: %s\n", CodeStub::MajorName(major_key, false)); | 1367 PrintF("Function: %s\n", CodeStub::MajorName(major_key, false)); |
1368 } else { | 1368 } else { |
1369 ASSERT(chunk_->info()->IsOptimizing()); | 1369 ASSERT(chunk_->info()->IsOptimizing()); |
1370 AllowHandleDereference allow_deref; | 1370 AllowHandleDereference allow_deref; |
1371 PrintF("Function: %s\n", | 1371 PrintF("Function: %s\n", |
1372 *chunk_->info()->function()->debug_name()->ToCString()); | 1372 chunk_->info()->function()->debug_name()->ToCString().get()); |
1373 } | 1373 } |
1374 PrintF("Value %d used before first definition!\n", operand_index); | 1374 PrintF("Value %d used before first definition!\n", operand_index); |
1375 LiveRange* range = LiveRangeFor(operand_index); | 1375 LiveRange* range = LiveRangeFor(operand_index); |
1376 PrintF("First use is at %d\n", range->first_pos()->pos().Value()); | 1376 PrintF("First use is at %d\n", range->first_pos()->pos().Value()); |
1377 iterator.Advance(); | 1377 iterator.Advance(); |
1378 } | 1378 } |
1379 ASSERT(!found); | 1379 ASSERT(!found); |
1380 } | 1380 } |
1381 #endif | 1381 #endif |
1382 } | 1382 } |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2210 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); | 2210 isolate()->GetHTracer()->TraceLiveRanges(name(), allocator_); |
2211 } | 2211 } |
2212 | 2212 |
2213 #ifdef DEBUG | 2213 #ifdef DEBUG |
2214 if (allocator_ != NULL) allocator_->Verify(); | 2214 if (allocator_ != NULL) allocator_->Verify(); |
2215 #endif | 2215 #endif |
2216 } | 2216 } |
2217 | 2217 |
2218 | 2218 |
2219 } } // namespace v8::internal | 2219 } } // namespace v8::internal |
OLD | NEW |