OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/hydrogen.h" | 7 #include "src/hydrogen.h" |
8 #include "src/lithium-inl.h" | 8 #include "src/lithium-inl.h" |
9 #include "src/lithium-allocator-inl.h" | 9 #include "src/lithium-allocator-inl.h" |
10 #include "src/string-stream.h" | 10 #include "src/string-stream.h" |
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 while (!iterator.Done()) { | 1336 while (!iterator.Done()) { |
1337 found = true; | 1337 found = true; |
1338 int operand_index = iterator.Current(); | 1338 int operand_index = iterator.Current(); |
1339 if (chunk_->info()->IsStub()) { | 1339 if (chunk_->info()->IsStub()) { |
1340 CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey(); | 1340 CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey(); |
1341 PrintF("Function: %s\n", CodeStub::MajorName(major_key, false)); | 1341 PrintF("Function: %s\n", CodeStub::MajorName(major_key, false)); |
1342 } else { | 1342 } else { |
1343 DCHECK(chunk_->info()->IsOptimizing()); | 1343 DCHECK(chunk_->info()->IsOptimizing()); |
1344 AllowHandleDereference allow_deref; | 1344 AllowHandleDereference allow_deref; |
1345 PrintF("Function: %s\n", | 1345 PrintF("Function: %s\n", |
1346 chunk_->info()->function()->debug_name()->ToCString().get()); | 1346 chunk_->info()->literal()->debug_name()->ToCString().get()); |
1347 } | 1347 } |
1348 PrintF("Value %d used before first definition!\n", operand_index); | 1348 PrintF("Value %d used before first definition!\n", operand_index); |
1349 LiveRange* range = LiveRangeFor(operand_index); | 1349 LiveRange* range = LiveRangeFor(operand_index); |
1350 PrintF("First use is at %d\n", range->first_pos()->pos().Value()); | 1350 PrintF("First use is at %d\n", range->first_pos()->pos().Value()); |
1351 iterator.Advance(); | 1351 iterator.Advance(); |
1352 } | 1352 } |
1353 DCHECK(!found); | 1353 DCHECK(!found); |
1354 } | 1354 } |
1355 #endif | 1355 #endif |
1356 } | 1356 } |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2185 } | 2185 } |
2186 | 2186 |
2187 #ifdef DEBUG | 2187 #ifdef DEBUG |
2188 if (allocator_ != NULL) allocator_->Verify(); | 2188 if (allocator_ != NULL) allocator_->Verify(); |
2189 #endif | 2189 #endif |
2190 } | 2190 } |
2191 | 2191 |
2192 | 2192 |
2193 } // namespace internal | 2193 } // namespace internal |
2194 } // namespace v8 | 2194 } // namespace v8 |
OLD | NEW |