[Webkit-unassigned] [Bug 147942] New: Add InspectorInstrumentation builtin object to instrument the code in JS builtins like Promises

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 12 11:33:52 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147942

            Bug ID: 147942
           Summary: Add InspectorInstrumentation builtin object to
                    instrument the code in JS builtins like Promises
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: utatane.tea at gmail.com

To provide information to the inspector, JS builtins should have some sort of instrumentation system.
In this patch, we'll introduce a new private namespace object (like Reflect/Math) @InspectorInstrumentation into the builtin JS.
It gives the instrumentation ability to the builtin JS code in JSC.

Here's my design.
In @fulfillPromise in Operation.Promise.js,

function fulfillPromise(...)
{
    ...
    @InspectorInstrumentation.promiseFulfilled(promise);
    ...
}

And in InspectorInstrumentationObject.js (builtin JS code),

function promiseFulfilled(promise)
{
    if (!this.isEnabled)
        return;
    this.promiseFulfilledImpl(promise);  // call C++ code / other inspector code
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150812/6d318b75/attachment-0001.html>


More information about the webkit-unassigned mailing list