Changeset 195916 in webkit
- Timestamp:
- Jan 30, 2016 4:41:57 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 64 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r195913 r195916 1 2016-01-30 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195799 and r195828. 4 https://bugs.webkit.org/show_bug.cgi?id=153722 5 6 Caused assertion failures, severely affecting EWS (Requested 7 by ap on #webkit). 8 9 Reverted changesets: 10 11 "Web Inspector: InspectorTimelineAgent doesn't need to 12 recompile functions because it now uses the sampling profiler" 13 https://bugs.webkit.org/show_bug.cgi?id=153500 14 http://trac.webkit.org/changeset/195799 15 16 "Attempt to fix the Windows build after r195799" 17 http://trac.webkit.org/changeset/195828 18 1 19 2016-01-30 Brady Eidson <beidson@apple.com> 2 20 -
trunk/LayoutTests/fast/profiler/anonymous-event-handler.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/anonymous-function-called-from-different-contexts.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/anonymous-function-calls-built-in-functions.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/anonymous-function-calls-eval.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/anonymous-functions-with-display-names.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function anonymousFunctionGenerator(iterations) -
trunk/LayoutTests/fast/profiler/apply.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/built-in-function-calls-anonymous.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/built-in-function-calls-user-defined-function.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/call-register-leak.html
r195799 r195916 5 5 testRunner.dumpAsText(); 6 6 if (window.internals) 7 internals.set LegacyJavaScriptProfilingEnabled(true);7 internals.setJavaScriptProfilingEnabled(true); 8 8 9 9 function log(s) -
trunk/LayoutTests/fast/profiler/call.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/compare-multiple-profiles.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 var j = 0; -
trunk/LayoutTests/fast/profiler/constructor.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/dead-time.html
r195799 r195916 8 8 } 9 9 if (window.internals) 10 internals.set LegacyJavaScriptProfilingEnabled(true);10 internals.setJavaScriptProfilingEnabled(true); 11 11 12 12 function startTest() -
trunk/LayoutTests/fast/profiler/document-dot-write.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/event-handler.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/execution-context-and-eval-on-same-line.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/inline-event-handler.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/many-calls-in-the-same-scope.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/multiple-and-different-scoped-anonymous-function-calls.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/multiple-and-different-scoped-function-calls.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/multiple-anonymous-functions-called-from-the-same-function.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/multiple-frames.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/named-functions-with-display-names.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function function0() -
trunk/LayoutTests/fast/profiler/nested-anonymous-functon.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/nested-start-and-stop-profiler.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/no-execution-context.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 </script> 10 10 </head> -
trunk/LayoutTests/fast/profiler/one-execution-context.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/profile-calls-in-included-file.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/profile-with-no-title.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/profiling-from-a-nested-location.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/simple-event-call.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/simple-no-level-change.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/start-and-stop-profiler-multiple-times.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/start-and-stop-profiling-in-the-same-function.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/start-but-dont-stop-profiling.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/stop-profiling-after-setTimeout.html
r195799 r195916 8 8 } 9 9 if (window.internals) 10 internals.set LegacyJavaScriptProfilingEnabled(true);10 internals.setJavaScriptProfilingEnabled(true); 11 11 12 12 function startTest() -
trunk/LayoutTests/fast/profiler/stop-then-function-call.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 var j = 0; -
trunk/LayoutTests/fast/profiler/throw-exception-from-eval.html-disabled
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.settings.set LegacyJavaScriptProfilingEnabled(true);8 internals.settings.setJavaScriptProfilingEnabled(true); 9 9 10 10 console.profile("Throw within an eval."); -
trunk/LayoutTests/fast/profiler/two-execution-contexts.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/user-defined-function-calls-built-in-functions.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/fast/profiler/window-dot-eval.html
r195799 r195916 6 6 testRunner.dumpAsText(); 7 7 if (window.internals) 8 internals.set LegacyJavaScriptProfilingEnabled(true);8 internals.setJavaScriptProfilingEnabled(true); 9 9 10 10 function startTest() -
trunk/LayoutTests/inspector/sampling-profiler/eval-source-url.html
r195799 r195916 22 22 23 23 function bar() { 24 eval("//# sourceURL=eval.js\nfoo();"); 24 for (let i = 0; i < 2; i++) 25 eval("//# sourceURL=eval.js\nfoo();"); 25 26 } 26 27 noInline(bar); -
trunk/Source/JavaScriptCore/ChangeLog
r195906 r195916 1 2016-01-30 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195799 and r195828. 4 https://bugs.webkit.org/show_bug.cgi?id=153722 5 6 Caused assertion failures, severely affecting EWS (Requested 7 by ap on #webkit). 8 9 Reverted changesets: 10 11 "Web Inspector: InspectorTimelineAgent doesn't need to 12 recompile functions because it now uses the sampling profiler" 13 https://bugs.webkit.org/show_bug.cgi?id=153500 14 http://trac.webkit.org/changeset/195799 15 16 "Attempt to fix the Windows build after r195799" 17 http://trac.webkit.org/changeset/195828 18 1 19 2016-01-30 Yusuke Suzuki <utatane.tea@gmail.com> 2 20 -
trunk/Source/JavaScriptCore/jsc.cpp
r195865 r195916 778 778 779 779 const ClassInfo GlobalObject::s_info = { "global", &JSGlobalObject::s_info, nullptr, CREATE_METHOD_TABLE(GlobalObject) }; 780 const GlobalObjectMethodTable GlobalObject::s_globalObjectMethodTable = { &allowsAccessFrom, &supports LegacyProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, 0, &shouldInterruptScriptBeforeTimeout, &moduleLoaderResolve, &moduleLoaderFetch, nullptr, nullptr, nullptr };780 const GlobalObjectMethodTable GlobalObject::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, 0, &shouldInterruptScriptBeforeTimeout, &moduleLoaderResolve, &moduleLoaderFetch, nullptr, nullptr, nullptr }; 781 781 782 782 -
trunk/Source/JavaScriptCore/runtime/Executable.cpp
r195876 r195916 299 299 ParserError error; 300 300 DebuggerMode debuggerMode = globalObject->hasDebugger() ? DebuggerOn : DebuggerOff; 301 ProfilerMode profilerMode = globalObject->has LegacyProfiler() ? ProfilerOn : ProfilerOff;301 ProfilerMode profilerMode = globalObject->hasProfiler() ? ProfilerOn : ProfilerOff; 302 302 UnlinkedFunctionCodeBlock* unlinkedCodeBlock = 303 303 executable->m_unlinkedExecutable->unlinkedCodeBlockFor( -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp
r195878 r195916 174 174 const ClassInfo JSGlobalObject::s_info = { "GlobalObject", &Base::s_info, &globalObjectTable, CREATE_METHOD_TABLE(JSGlobalObject) }; 175 175 176 const GlobalObjectMethodTable JSGlobalObject::s_globalObjectMethodTable = { &allowsAccessFrom, &supports LegacyProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, nullptr, &shouldInterruptScriptBeforeTimeout, nullptr, nullptr, nullptr, nullptr, nullptr };176 const GlobalObjectMethodTable JSGlobalObject::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, nullptr, &shouldInterruptScriptBeforeTimeout, nullptr, nullptr, nullptr, nullptr, nullptr }; 177 177 178 178 /* Source for JSGlobalObject.lut.h … … 613 613 } 614 614 615 bool JSGlobalObject::hasLegacyProfiler() const 616 { 617 return globalObjectMethodTable()->supportsLegacyProfiling(this); 615 bool JSGlobalObject::hasProfiler() const 616 { 617 if (m_debugger && m_debugger->hasProfilingClient()) 618 return true; 619 620 return globalObjectMethodTable()->supportsProfiling(this); 618 621 } 619 622 … … 977 980 JSParserStrictMode strictMode = executable->isStrictMode() ? JSParserStrictMode::Strict : JSParserStrictMode::NotStrict; 978 981 DebuggerMode debuggerMode = hasDebugger() ? DebuggerOn : DebuggerOff; 979 ProfilerMode profilerMode = has LegacyProfiler() ? ProfilerOn : ProfilerOff;982 ProfilerMode profilerMode = hasProfiler() ? ProfilerOn : ProfilerOff; 980 983 UnlinkedProgramCodeBlock* unlinkedCodeBlock = vm().codeCache()->getProgramCodeBlock( 981 984 vm(), executable, executable->source(), JSParserBuiltinMode::NotBuiltin, strictMode, … … 998 1001 JSParserStrictMode strictMode = executable->isStrictMode() ? JSParserStrictMode::Strict : JSParserStrictMode::NotStrict; 999 1002 DebuggerMode debuggerMode = hasDebugger() ? DebuggerOn : DebuggerOff; 1000 ProfilerMode profilerMode = has LegacyProfiler() ? ProfilerOn : ProfilerOff;1003 ProfilerMode profilerMode = hasProfiler() ? ProfilerOn : ProfilerOff; 1001 1004 UnlinkedEvalCodeBlock* unlinkedCodeBlock = vm().codeCache()->getEvalCodeBlock( 1002 1005 vm(), executable, executable->source(), JSParserBuiltinMode::NotBuiltin, strictMode, thisTDZMode, isArrowFunctionContext, debuggerMode, profilerMode, error, variablesUnderTDZ); … … 1017 1020 ParserError error; 1018 1021 DebuggerMode debuggerMode = hasDebugger() ? DebuggerOn : DebuggerOff; 1019 ProfilerMode profilerMode = has LegacyProfiler() ? ProfilerOn : ProfilerOff;1022 ProfilerMode profilerMode = hasProfiler() ? ProfilerOn : ProfilerOff; 1020 1023 UnlinkedModuleProgramCodeBlock* unlinkedCodeBlock = vm().codeCache()->getModuleProgramCodeBlock( 1021 1024 vm(), executable, executable->source(), JSParserBuiltinMode::NotBuiltin, debuggerMode, profilerMode, error); -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h
r195799 r195916 142 142 AllowsAccessFromFunctionPtr allowsAccessFrom; 143 143 144 typedef bool (*Supports LegacyProfilingFunctionPtr)(const JSGlobalObject*);145 Supports LegacyProfilingFunctionPtr supportsLegacyProfiling;144 typedef bool (*SupportsProfilingFunctionPtr)(const JSGlobalObject*); 145 SupportsProfilingFunctionPtr supportsProfiling; 146 146 147 147 typedef bool (*SupportsRichSourceInfoFunctionPtr)(const JSGlobalObject*); … … 361 361 362 362 bool hasDebugger() const { return m_debugger; } 363 bool has LegacyProfiler() const;363 bool hasProfiler() const; 364 364 const RuntimeFlags& runtimeFlags() const { return m_runtimeFlags; } 365 365 … … 620 620 621 621 static bool allowsAccessFrom(const JSGlobalObject*, ExecState*) { return true; } 622 static bool supports LegacyProfiling(const JSGlobalObject*) { return false; }622 static bool supportsProfiling(const JSGlobalObject*) { return false; } 623 623 static bool supportsRichSourceInfo(const JSGlobalObject*) { return true; } 624 624 -
trunk/Source/WebCore/ChangeLog
r195913 r195916 1 2016-01-30 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195799 and r195828. 4 https://bugs.webkit.org/show_bug.cgi?id=153722 5 6 Caused assertion failures, severely affecting EWS (Requested 7 by ap on #webkit). 8 9 Reverted changesets: 10 11 "Web Inspector: InspectorTimelineAgent doesn't need to 12 recompile functions because it now uses the sampling profiler" 13 https://bugs.webkit.org/show_bug.cgi?id=153500 14 http://trac.webkit.org/changeset/195799 15 16 "Attempt to fix the Windows build after r195799" 17 http://trac.webkit.org/changeset/195828 18 1 19 2016-01-30 Brady Eidson <beidson@apple.com> 2 20 -
trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp
r195799 r195916 64 64 const ClassInfo JSDOMWindowBase::s_info = { "Window", &JSDOMGlobalObject::s_info, 0, CREATE_METHOD_TABLE(JSDOMWindowBase) }; 65 65 66 const GlobalObjectMethodTable JSDOMWindowBase::s_globalObjectMethodTable = { &shouldAllowAccessFrom, &supports LegacyProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, &queueTaskToEventLoop, &shouldInterruptScriptBeforeTimeout, &moduleLoaderResolve, &moduleLoaderFetch, nullptr, nullptr, &moduleLoaderEvaluate };66 const GlobalObjectMethodTable JSDOMWindowBase::s_globalObjectMethodTable = { &shouldAllowAccessFrom, &supportsProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, &queueTaskToEventLoop, &shouldInterruptScriptBeforeTimeout, &moduleLoaderResolve, &moduleLoaderFetch, nullptr, nullptr, &moduleLoaderEvaluate }; 67 67 68 68 JSDOMWindowBase::JSDOMWindowBase(VM& vm, Structure* structure, PassRefPtr<DOMWindow> window, JSDOMWindowShell* shell) … … 116 116 } 117 117 118 bool JSDOMWindowBase::supports LegacyProfiling(const JSGlobalObject* object)118 bool JSDOMWindowBase::supportsProfiling(const JSGlobalObject* object) 119 119 { 120 120 const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object); … … 127 127 return false; 128 128 129 return page->inspectorController(). legacyProfilerEnabled();129 return page->inspectorController().profilerEnabled(); 130 130 } 131 131 … … 143 143 bool enabled = page->inspectorController().enabled(); 144 144 ASSERT(enabled || !thisObject->debugger()); 145 ASSERT(enabled || !supports LegacyProfiling(thisObject));145 ASSERT(enabled || !supportsProfiling(thisObject)); 146 146 return enabled; 147 147 } -
trunk/Source/WebCore/bindings/js/JSDOMWindowBase.h
r195799 r195916 61 61 static const JSC::GlobalObjectMethodTable s_globalObjectMethodTable; 62 62 63 static bool supports LegacyProfiling(const JSC::JSGlobalObject*);63 static bool supportsProfiling(const JSC::JSGlobalObject*); 64 64 static bool supportsRichSourceInfo(const JSC::JSGlobalObject*); 65 65 static bool shouldInterruptScript(const JSC::JSGlobalObject*); -
trunk/Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp
r195799 r195916 44 44 const ClassInfo JSWorkerGlobalScopeBase::s_info = { "WorkerGlobalScope", &JSDOMGlobalObject::s_info, 0, CREATE_METHOD_TABLE(JSWorkerGlobalScopeBase) }; 45 45 46 const GlobalObjectMethodTable JSWorkerGlobalScopeBase::s_globalObjectMethodTable = { &allowsAccessFrom, &supports LegacyProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, &queueTaskToEventLoop, &shouldInterruptScriptBeforeTimeout, nullptr, nullptr, nullptr, nullptr, nullptr };46 const GlobalObjectMethodTable JSWorkerGlobalScopeBase::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, &queueTaskToEventLoop, &shouldInterruptScriptBeforeTimeout, nullptr, nullptr, nullptr, nullptr, nullptr }; 47 47 48 48 JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<WorkerGlobalScope> impl) … … 73 73 } 74 74 75 bool JSWorkerGlobalScopeBase::supports LegacyProfiling(const JSGlobalObject* object)75 bool JSWorkerGlobalScopeBase::supportsProfiling(const JSGlobalObject* object) 76 76 { 77 return JSGlobalObject::supports LegacyProfiling(object);77 return JSGlobalObject::supportsProfiling(object); 78 78 } 79 79 -
trunk/Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.h
r195799 r195916 54 54 55 55 static bool allowsAccessFrom(const JSC::JSGlobalObject*, JSC::ExecState*); 56 static bool supports LegacyProfiling(const JSC::JSGlobalObject*);56 static bool supportsProfiling(const JSC::JSGlobalObject*); 57 57 static bool supportsRichSourceInfo(const JSC::JSGlobalObject*); 58 58 static bool shouldInterruptScript(const JSC::JSGlobalObject*); -
trunk/Source/WebCore/inspector/InspectorController.cpp
r195799 r195916 404 404 } 405 405 406 bool InspectorController::legacyProfilerEnabled() const 407 { 408 return m_legacyProfilerEnabled; 409 } 410 411 void InspectorController::setLegacyProfilerEnabled(bool enable) 412 { 413 m_legacyProfilerEnabled = enable; 414 415 m_instrumentingAgents->setPersistentInspectorTimelineAgent(enable ? m_timelineAgent : nullptr); 416 m_scriptDebugServer.recompileAllJSFunctions(); 406 bool InspectorController::profilerEnabled() const 407 { 408 return m_instrumentingAgents->persistentInspectorTimelineAgent(); 409 } 410 411 void InspectorController::setProfilerEnabled(bool enable) 412 { 413 ErrorString unused; 414 415 if (enable) { 416 m_instrumentingAgents->setPersistentInspectorTimelineAgent(m_timelineAgent); 417 m_timelineAgent->start(unused); 418 } else { 419 m_instrumentingAgents->setPersistentInspectorTimelineAgent(nullptr); 420 m_timelineAgent->stop(unused); 421 } 417 422 } 418 423 -
trunk/Source/WebCore/inspector/InspectorController.h
r195799 r195916 112 112 WEBCORE_EXPORT void evaluateForTestInFrontend(const String& script); 113 113 114 WEBCORE_EXPORT bool legacyProfilerEnabled() const;115 WEBCORE_EXPORT void set LegacyProfilerEnabled(bool);114 WEBCORE_EXPORT bool profilerEnabled() const; 115 WEBCORE_EXPORT void setProfilerEnabled(bool); 116 116 117 117 InspectorClient* inspectorClient() const { return m_inspectorClient; } … … 152 152 bool m_isUnderTest { false }; 153 153 bool m_isAutomaticInspection { false }; 154 bool m_legacyProfilerEnabled { false };155 154 }; 156 155 -
trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp
r195799 r195916 85 85 { 86 86 m_instrumentingAgents.setPersistentInspectorTimelineAgent(this); 87 } 88 89 void InspectorTimelineAgent::willDestroyFrontendAndBackend(Inspector::DisconnectReason) 87 88 // Recompile to include profiling information. 89 // FIXME: This doesn't seem like the most appropriate place. 90 m_environment.scriptDebugServer().recompileAllJSFunctions(); 91 } 92 93 void InspectorTimelineAgent::willDestroyFrontendAndBackend(Inspector::DisconnectReason reason) 90 94 { 91 95 m_instrumentingAgents.setPersistentInspectorTimelineAgent(nullptr); 96 97 if (reason != Inspector::DisconnectReason::InspectedTargetDestroyed) 98 m_environment.scriptDebugServer().recompileAllJSFunctions(); 92 99 93 100 ErrorString unused; … … 197 204 } 198 205 206 static inline void startProfiling(JSC::ExecState* exec, const String& title, RefPtr<Stopwatch>&& stopwatch) 207 { 208 JSC::LegacyProfiler::profiler()->startProfiling(exec, title, WTFMove(stopwatch)); 209 } 210 211 static inline RefPtr<JSC::Profile> stopProfiling(JSC::ExecState* exec, const String& title) 212 { 213 return JSC::LegacyProfiler::profiler()->stopProfiling(exec, title); 214 } 215 199 216 void InspectorTimelineAgent::startFromConsole(JSC::ExecState* exec, const String &title) 200 217 { 201 // FIXME: <https://webkit.org/b/153499> Web Inspector: console.profile should use the new Sampling Profiler202 203 218 // Only allow recording of a profile if it is anonymous (empty title) or does not match 204 219 // the title of an already recording profile. … … 215 230 internalStart(); 216 231 217 JSC::LegacyProfiler::profiler()->startProfiling(exec, title, m_environment.executionStopwatch());232 startProfiling(exec, title, m_environment.executionStopwatch()); 218 233 219 234 m_pendingConsoleProfileRecords.append(createRecordEntry(TimelineRecordFactory::createConsoleProfileData(title), TimelineRecordType::ConsoleProfile, true, frameFromExecState(exec))); … … 222 237 RefPtr<JSC::Profile> InspectorTimelineAgent::stopFromConsole(JSC::ExecState* exec, const String& title) 223 238 { 224 // FIXME: <https://webkit.org/b/153499> Web Inspector: console.profile should use the new Sampling Profiler225 226 239 // Stop profiles in reverse order. If the title is empty, then stop the last profile. 227 240 // Otherwise, match the title of the profile to stop. … … 233 246 234 247 if (title.isEmpty() || recordTitle == title) { 235 RefPtr<JSC::Profile> profile = JSC::LegacyProfiler::profiler()->stopProfiling(exec, title);248 RefPtr<JSC::Profile> profile = stopProfiling(exec, title); 236 249 if (profile) 237 250 TimelineRecordFactory::appendProfile(record.data.get(), profile.copyRef()); -
trunk/Source/WebCore/page/PageConsoleClient.cpp
r195799 r195916 185 185 void PageConsoleClient::profile(JSC::ExecState* exec, const String& title) 186 186 { 187 // FIXME: <https://webkit.org/b/153499> Web Inspector: console.profile should use the new Sampling Profiler188 187 InspectorInstrumentation::startProfiling(m_page, exec, title); 189 188 } … … 191 190 void PageConsoleClient::profileEnd(JSC::ExecState* exec, const String& title) 192 191 { 193 // FIXME: <https://webkit.org/b/153499> Web Inspector: console.profile should use the new Sampling Profiler194 192 if (RefPtr<JSC::Profile> profile = InspectorInstrumentation::stopProfiling(m_page, exec, title)) 195 193 m_profiles.append(WTFMove(profile)); -
trunk/Source/WebCore/testing/Internals.cpp
r195799 r195916 373 373 WebCore::overrideUserPreferredLanguages(Vector<String>()); 374 374 WebCore::Settings::setUsesOverlayScrollbars(false); 375 page->inspectorController().set LegacyProfilerEnabled(false);375 page->inspectorController().setProfilerEnabled(false); 376 376 #if ENABLE(VIDEO_TRACK) 377 377 page->group().captionPreferences()->setCaptionsStyleSheetOverride(emptyString()); … … 1840 1840 } 1841 1841 1842 void Internals::set LegacyJavaScriptProfilingEnabled(bool enabled, ExceptionCode& ec)1842 void Internals::setJavaScriptProfilingEnabled(bool enabled, ExceptionCode& ec) 1843 1843 { 1844 1844 Page* page = contextDocument()->frame()->page(); … … 1848 1848 } 1849 1849 1850 page->inspectorController().set LegacyProfilerEnabled(enabled);1850 page->inspectorController().setProfilerEnabled(enabled); 1851 1851 } 1852 1852 -
trunk/Source/WebCore/testing/Internals.h
r195799 r195916 279 279 RefPtr<DOMWindow> openDummyInspectorFrontend(const String& url); 280 280 void closeDummyInspectorFrontend(); 281 void set LegacyJavaScriptProfilingEnabled(bool enabled, ExceptionCode&);281 void setJavaScriptProfilingEnabled(bool enabled, ExceptionCode&); 282 282 void setInspectorIsUnderTest(bool isUnderTest, ExceptionCode&); 283 283 -
trunk/Source/WebCore/testing/Internals.idl
r195799 r195916 264 264 DOMWindow openDummyInspectorFrontend(DOMString url); 265 265 void closeDummyInspectorFrontend(); 266 [RaisesException] void set LegacyJavaScriptProfilingEnabled(boolean enabled);266 [RaisesException] void setJavaScriptProfilingEnabled(boolean creates); 267 267 [RaisesException] void setInspectorIsUnderTest(boolean isUnderTest); 268 268 -
trunk/Source/WebKit/win/ChangeLog
r195911 r195916 1 2016-01-30 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195799 and r195828. 4 https://bugs.webkit.org/show_bug.cgi?id=153722 5 6 Caused assertion failures, severely affecting EWS (Requested 7 by ap on #webkit). 8 9 Reverted changesets: 10 11 "Web Inspector: InspectorTimelineAgent doesn't need to 12 recompile functions because it now uses the sampling profiler" 13 https://bugs.webkit.org/show_bug.cgi?id=153500 14 http://trac.webkit.org/changeset/195799 15 16 "Attempt to fix the Windows build after r195799" 17 http://trac.webkit.org/changeset/195828 18 1 19 2016-01-30 Darin Adler <darin@apple.com> 2 20 -
trunk/Source/WebKit/win/WebInspector.cpp
r195828 r195916 217 217 return S_OK; 218 218 219 *isProfilingEnabled = inspectedPage->inspectorController(). legacyProfilerEnabled();219 *isProfilingEnabled = inspectedPage->inspectorController().profilerEnabled(); 220 220 return S_OK; 221 221 } … … 230 230 return S_OK; 231 231 232 inspectedPage->inspectorController().set LegacyProfilerEnabled(enabled);232 inspectedPage->inspectorController().setProfilerEnabled(enabled); 233 233 234 234 return S_OK;
Note: See TracChangeset
for help on using the changeset viewer.