WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
110769
[V8] Generate a wrapper function for method callbacks
https://bugs.webkit.org/show_bug.cgi?id=110769
Summary
[V8] Generate a wrapper function for method callbacks
Kentaro Hara
Reported
2013-02-25 10:56:10 PST
This is one of steps to insert TRACE_EVENT_STATE() macros into DOM bindings. This patch introduces an indirection function for xxxMethod(), like this: // For non-custom methods void xxxMethodCallback(...) { xxxMethod(...); } // For custom methods void xxxMethodCallback(...) { return xxxMethodCustom(...); }
Attachments
Patch
(89.64 KB, patch)
2013-02-25 11:33 PST
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2013-02-25 11:33:26 PST
Created
attachment 190097
[details]
Patch
Kentaro Hara
Comment 2
2013-02-25 11:36:28 PST
Comment on
attachment 190097
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=190097&action=review
> Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:1473 > -sub GenerateOverloadedFunctionCallback > +sub GenerateOverloadedFunction
The diff is confusing, but basically I just factored ${name}MethodCallback() out of GenerateOverloadedFunctionCallback().
> Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:1533 > + push(@implContentDecls, " return ${v8InterfaceName}::${name}MethodCustom(args);\n"); > + } else { > + push(@implContentDecls, " return ${interfaceName}V8Internal::${name}Method(args);\n"); > + }
And this is the essential part of the patch. Other diffs are just for making this part workable.
Kentaro Hara
Comment 3
2013-02-25 13:33:14 PST
Committed
r143967
: <
http://trac.webkit.org/changeset/143967
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug