Allow nested compile-script histogram scopes.

R=bmeurer@chromium.org
BUG=chromium:449959
LOG=N

Review URL: https://codereview.chromium.org/822823003

Cr-Commit-Position: refs/heads/master@{#26128}
This commit is contained in:
yangguo 2015-01-19 03:32:58 -08:00 committed by Commit bot
parent 502407335d
commit db653e547c

View File

@ -1263,7 +1263,7 @@ Handle<SharedFunctionInfo> Compiler::CompileScript(
v8::Extension* extension, ScriptData** cached_data,
ScriptCompiler::CompileOptions compile_options, NativesFlag natives) {
Isolate* isolate = source->GetIsolate();
HistogramTimerScope total(isolate->counters()->compile_script());
HistogramTimerScope total(isolate->counters()->compile_script(), true);
if (compile_options == ScriptCompiler::kNoCompileOptions) {
cached_data = NULL;