When templates for main world and non-main worlds will be separated, HasInstance logic will be a bit ugly: We cannot determine the world type on the fly, because during GC there is no entered context, and HasInstance is called during GC. So we need to check against templates from all the worlds. It's cleaner if that logic is in V8PerIsolateData.
Created attachment 192715 [details] Patch
Comment on attachment 192715 [details] Patch It's anyway a good idea to factor out duplicated logic from auto-generated code to V8Binding.cpp.
Comment on attachment 192715 [details] Patch Clearing flags on attachment: 192715 Committed r145538: <http://trac.webkit.org/changeset/145538>
All reviewed patches have been landed. Closing bug.