Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp |
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp |
| index 6117ad46d8f0acfdf01748eeb04666b91d31ad83..b381b769ad989b33f059c1a571007ae52543ea6d 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp |
| @@ -30,9 +30,11 @@ |
| #include "bindings/core/v8/V8Binding.h" |
| #include "bindings/core/v8/V8GCController.h" |
| #include "bindings/core/v8/V8ThrowException.h" |
| +#include "core/dom/Document.h" |
| #include "core/dom/ExecutionContext.h" |
| #include "core/fetch/CachedMetadata.h" |
| #include "core/fetch/ScriptResource.h" |
| +#include "core/frame/LocalFrame.h" |
| #include "core/inspector/InspectorTraceEvents.h" |
| #include "core/inspector/ThreadDebugger.h" |
| #include "platform/Histogram.h" |
| @@ -443,6 +445,7 @@ v8::MaybeLocal<v8::Value> V8ScriptRunner::runCompiledInternalScript(v8::Isolate* |
| v8::MaybeLocal<v8::Value> V8ScriptRunner::callFunction(v8::Local<v8::Function> function, ExecutionContext* context, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> args[], v8::Isolate* isolate) |
| { |
| + ScopedFrameBlamer frameBlamer(context->isDocument() ? toDocument(context)->frame() : nullptr); |
|
yhirano
2016/06/01 12:26:05
Do you want to put the frame blamer only in callFu
Xiaocheng
2016/06/02 03:17:19
Nope.
|
| TRACE_EVENT0("v8", "v8.callFunction"); |
| TRACE_EVENT_SCOPED_SAMPLING_STATE("v8", "V8Execution"); |