[Webkit-unassigned] [Bug 102686] [V8] toFastV8 for non-Nodes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 3 11:50:24 PST 2012


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





--- Comment #8 from Adam Barth <abarth at webkit.org>  2012-12-03 11:52:48 PST ---
(From update of attachment 177259)
View in context: https://bugs.webkit.org/attachment.cgi?id=177259&action=review

> Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:589
> -inline v8::Handle<v8::Value> toV8Fast(${nativeType}* impl, const v8::AccessorInfo& info, Node* holder)
> +inline v8::Handle<v8::Value> toV8Fast(${nativeType}* impl, const v8::Local<v8::Object> holder, v8::Isolate* isolate, Node* node)

This seems to imply that all callers need to call GetIsolate before calling toV8Fast.  In the common path through this function, we previously avoided the GetIsolate call.  Does calling that function eagerly affect performance (I would expect it to).

It might be worth having two overloaded copies of this function: one for AccessorInfo and one for Arguments.  We could even make it a template since the code would be identical.  This function is always inlined, so there wouldn't be any cost to having two copies.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list