Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: src/v8.cc

Issue 6646015: Normalize statistics about compilation time and allocation size.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void V8::SetFatalError() { 152 void V8::SetFatalError() {
153 is_running_ = false; 153 is_running_ = false;
154 has_fatal_error_ = true; 154 has_fatal_error_ = true;
155 } 155 }
156 156
157 157
158 void V8::TearDown() { 158 void V8::TearDown() {
159 if (!has_been_setup_ || has_been_disposed_) return; 159 if (!has_been_setup_ || has_been_disposed_) return;
160 160
161 if (FLAG_time_hydrogen) HStatistics::Instance()->Print(); 161 if (FLAG_hydrogen_stats) HStatistics::Instance()->Print();
162 162
163 // We must stop the logger before we tear down other components. 163 // We must stop the logger before we tear down other components.
164 Logger::EnsureTickerStopped(); 164 Logger::EnsureTickerStopped();
165 165
166 Deoptimizer::TearDown(); 166 Deoptimizer::TearDown();
167 167
168 if (FLAG_preemption) { 168 if (FLAG_preemption) {
169 v8::Locker locker; 169 v8::Locker locker;
170 v8::Locker::StopPreemption(); 170 v8::Locker::StopPreemption();
171 } 171 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). 261 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)).
262 const double binary_million = 1048576.0; 262 const double binary_million = 1048576.0;
263 r->double_value = binary_million; 263 r->double_value = binary_million;
264 r->uint64_t_value |= random_bits; 264 r->uint64_t_value |= random_bits;
265 r->double_value -= binary_million; 265 r->double_value -= binary_million;
266 266
267 return heap_number; 267 return heap_number;
268 } 268 }
269 269
270 } } // namespace v8::internal 270 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698