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 10178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10189 } | 10189 } |
10190 | 10190 |
10191 | 10191 |
10192 void HTracer::FlushToFile() { | 10192 void HTracer::FlushToFile() { |
10193 AppendChars(filename_, *trace_.ToCString(), trace_.length(), false); | 10193 AppendChars(filename_, *trace_.ToCString(), trace_.length(), false); |
10194 trace_.Reset(); | 10194 trace_.Reset(); |
10195 } | 10195 } |
10196 | 10196 |
10197 | 10197 |
10198 void HStatistics::Initialize(CompilationInfo* info) { | 10198 void HStatistics::Initialize(CompilationInfo* info) { |
| 10199 if (info->shared_info().is_null()) return; |
10199 source_size_ += info->shared_info()->SourceSize(); | 10200 source_size_ += info->shared_info()->SourceSize(); |
10200 } | 10201 } |
10201 | 10202 |
10202 | 10203 |
10203 void HStatistics::Print() { | 10204 void HStatistics::Print() { |
10204 PrintF("Timing results:\n"); | 10205 PrintF("Timing results:\n"); |
10205 int64_t sum = 0; | 10206 int64_t sum = 0; |
10206 for (int i = 0; i < timing_.length(); ++i) { | 10207 for (int i = 0; i < timing_.length(); ++i) { |
10207 sum += timing_[i]; | 10208 sum += timing_[i]; |
10208 } | 10209 } |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10306 } | 10307 } |
10307 } | 10308 } |
10308 | 10309 |
10309 #ifdef DEBUG | 10310 #ifdef DEBUG |
10310 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 10311 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
10311 if (allocator_ != NULL) allocator_->Verify(); | 10312 if (allocator_ != NULL) allocator_->Verify(); |
10312 #endif | 10313 #endif |
10313 } | 10314 } |
10314 | 10315 |
10315 } } // namespace v8::internal | 10316 } } // namespace v8::internal |
OLD | NEW |