Commit db653e54 authored by yangguo's avatar yangguo Committed by Commit bot

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}
parent 50240733
...@@ -1263,7 +1263,7 @@ Handle<SharedFunctionInfo> Compiler::CompileScript( ...@@ -1263,7 +1263,7 @@ Handle<SharedFunctionInfo> Compiler::CompileScript(
v8::Extension* extension, ScriptData** cached_data, v8::Extension* extension, ScriptData** cached_data,
ScriptCompiler::CompileOptions compile_options, NativesFlag natives) { ScriptCompiler::CompileOptions compile_options, NativesFlag natives) {
Isolate* isolate = source->GetIsolate(); Isolate* isolate = source->GetIsolate();
HistogramTimerScope total(isolate->counters()->compile_script()); HistogramTimerScope total(isolate->counters()->compile_script(), true);
if (compile_options == ScriptCompiler::kNoCompileOptions) { if (compile_options == ScriptCompiler::kNoCompileOptions) {
cached_data = NULL; cached_data = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment