| 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/lithium-allocator.h" |     5 #include "src/lithium-allocator.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 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1329       } |  1329       } | 
|  1330     } |  1330     } | 
|  1331  |  1331  | 
|  1332 #ifdef DEBUG |  1332 #ifdef DEBUG | 
|  1333     if (block_id == 0) { |  1333     if (block_id == 0) { | 
|  1334       BitVector::Iterator iterator(live); |  1334       BitVector::Iterator iterator(live); | 
|  1335       bool found = false; |  1335       bool found = false; | 
|  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         { | 
|  1340           CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey(); |  | 
|  1341           PrintF("Function: %s\n", CodeStub::MajorName(major_key, false)); |  | 
|  1342         } else { |  | 
|  1343           DCHECK(chunk_->info()->IsOptimizing()); |  | 
|  1344           AllowHandleDereference allow_deref; |  1340           AllowHandleDereference allow_deref; | 
|  1345           PrintF("Function: %s\n", |  1341           PrintF("Function: %s\n", chunk_->info()->GetDebugName().get()); | 
|  1346                  chunk_->info()->literal()->debug_name()->ToCString().get()); |  | 
|  1347         } |  1342         } | 
|  1348         PrintF("Value %d used before first definition!\n", operand_index); |  1343         PrintF("Value %d used before first definition!\n", operand_index); | 
|  1349         LiveRange* range = LiveRangeFor(operand_index); |  1344         LiveRange* range = LiveRangeFor(operand_index); | 
|  1350         PrintF("First use is at %d\n", range->first_pos()->pos().Value()); |  1345         PrintF("First use is at %d\n", range->first_pos()->pos().Value()); | 
|  1351         iterator.Advance(); |  1346         iterator.Advance(); | 
|  1352       } |  1347       } | 
|  1353       DCHECK(!found); |  1348       DCHECK(!found); | 
|  1354     } |  1349     } | 
|  1355 #endif |  1350 #endif | 
|  1356   } |  1351   } | 
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2185   } |  2180   } | 
|  2186  |  2181  | 
|  2187 #ifdef DEBUG |  2182 #ifdef DEBUG | 
|  2188   if (allocator_ != NULL) allocator_->Verify(); |  2183   if (allocator_ != NULL) allocator_->Verify(); | 
|  2189 #endif |  2184 #endif | 
|  2190 } |  2185 } | 
|  2191  |  2186  | 
|  2192  |  2187  | 
|  2193 }  // namespace internal |  2188 }  // namespace internal | 
|  2194 }  // namespace v8 |  2189 }  // namespace v8 | 
| OLD | NEW |