RESOLVED FIXED 110765
[V8] Generate a wrapper method for constructor callbacks
https://bugs.webkit.org/show_bug.cgi?id=110765
Summary [V8] Generate a wrapper method for constructor callbacks
Kentaro Hara
Reported 2013-02-25 09:55:55 PST
This is one of steps to insert TRACE_EVENT_STATE() macros into DOM bindings. This patch introduces an indirection function for constructor(), like this: // For non-custom constructors void constructorCallback(...) { return constructor(...); } // For custom constructors void constructorCallback(...) { return constructorCustom(...); }
Attachments
Patch (40.46 KB, patch)
2013-02-25 10:29 PST, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2013-02-25 10:29:28 PST
Kentaro Hara
Comment 2 2013-02-25 10:33:45 PST
Comment on attachment 190088 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=190088&action=review > Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:2014 > + if (HasCustomConstructor($interface)) { > + push(@implContent, " return V8${interfaceName}::constructorCustom(args);\n"); > + } else { > + push(@implContent, " return ${interfaceName}V8Internal::constructor(args);\n"); > + } This is the essential part of this patch. Other diffs are just for making this part work.
Adam Barth
Comment 3 2013-02-25 11:54:41 PST
Comment on attachment 190088 [details] Patch ok
Kentaro Hara
Comment 4 2013-02-25 13:30:00 PST
Note You need to log in before you can comment on or make changes to this bug.