diff options
Diffstat (limited to 'Source/WebCore/bindings/v8')
-rw-r--r-- | Source/WebCore/bindings/v8/ScriptProfiler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/bindings/v8/ScriptProfiler.cpp b/Source/WebCore/bindings/v8/ScriptProfiler.cpp index 3fe45a8..21537f4 100644 --- a/Source/WebCore/bindings/v8/ScriptProfiler.cpp +++ b/Source/WebCore/bindings/v8/ScriptProfiler.cpp @@ -40,6 +40,7 @@ namespace WebCore { +#if ENABLE(INSPECTOR) void ScriptProfiler::start(ScriptState* state, const String& title) { v8::HandleScope hs; @@ -108,10 +109,13 @@ static v8::RetainedObjectInfo* retainedDOMInfo(uint16_t classId, v8::Handle<v8:: Node* node = V8Node::toNative(wrapper.As<v8::Object>()); return node ? new RetainedDOMInfo(node) : 0; } +#endif // ENABLE(INSPECTOR) void ScriptProfiler::initialize() { +#if ENABLE(INSPECTOR) v8::HeapProfiler::DefineWrapperClass(v8DOMSubtreeClassId, &retainedDOMInfo); +#endif // ENABLE(INSPECTOR) } |