RESOLVED FIXED 168179
Remove the remaining functions out of JSDOMBinding
https://bugs.webkit.org/show_bug.cgi?id=168179
Summary Remove the remaining functions out of JSDOMBinding
Sam Weinig
Reported 2017-02-11 15:07:06 PST
Remove more functions out of JSDOMBinding
Attachments
Patch (35.87 KB, patch)
2017-02-11 15:19 PST, Sam Weinig
no flags
Patch (24.99 KB, patch)
2017-02-11 16:30 PST, Sam Weinig
no flags
Patch (30.87 KB, patch)
2017-02-11 21:09 PST, Sam Weinig
darin: review+
Sam Weinig
Comment 1 2017-02-11 15:19:32 PST
Sam Weinig
Comment 2 2017-02-11 16:30:39 PST
Sam Weinig
Comment 3 2017-02-11 21:09:46 PST
Darin Adler
Comment 4 2017-02-11 23:44:30 PST
Comment on attachment 301290 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301290&action=review > Source/JavaScriptCore/runtime/IteratorOperations.cpp:170 > + JSObject* object = asObject(value); I would have used a reference here. > Source/JavaScriptCore/runtime/IteratorOperations.h:47 > +JS_EXPORT_PRIVATE bool hasIteratorMethod(ExecState&, JSValue); > + > JS_EXPORT_PRIVATE JSValue iteratorForIterable(ExecState*, JSValue iterable); I think these should be paragraphed together because they seem pretty closely related. > Source/WebCore/bindings/js/JSDOMBinding.h:26 > +// FIXME: Remove this header. What is this blocked on?
Darin Adler
Comment 5 2017-02-11 23:45:19 PST
Comment on attachment 301290 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301290&action=review >> Source/JavaScriptCore/runtime/IteratorOperations.cpp:170 >> + JSObject* object = asObject(value); > > I would have used a reference here. Oops, I see this is in JavaScriptCore, not WebCore, and I guess the local custom here its that we want to use pointers any time it’s a heap cell like this is.
Sam Weinig
Comment 6 2017-02-12 10:27:38 PST
(In reply to comment #4) > Comment on attachment 301290 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=301290&action=review > > > Source/JavaScriptCore/runtime/IteratorOperations.cpp:170 > > + JSObject* object = asObject(value); > > I would have used a reference here. > > > Source/JavaScriptCore/runtime/IteratorOperations.h:47 > > +JS_EXPORT_PRIVATE bool hasIteratorMethod(ExecState&, JSValue); > > + > > JS_EXPORT_PRIVATE JSValue iteratorForIterable(ExecState*, JSValue iterable); > > I think these should be paragraphed together because they seem pretty > closely related. Ok. > > > Source/WebCore/bindings/js/JSDOMBinding.h:26 > > +// FIXME: Remove this header. > > What is this blocked on? I need to remove it and get everything building by adding the headers to the appropriate places. I want to do that in a separate pass. Thanks for the review.
Sam Weinig
Comment 7 2017-02-12 10:30:52 PST
Michael Catanzaro
Comment 8 2017-02-12 16:24:14 PST
Carlos, it broke our bindings generation tests, can you investigate please?
Michael Catanzaro
Comment 9 2017-02-12 16:26:10 PST
It broke the Mac bindings tests as well!
Michael Catanzaro
Comment 10 2017-02-12 16:27:53 PST
And it broke the cloop bot: /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/runtime/Lookup.h:392:28: error: incomplete type 'JSC::JSFunction' named in nested name specifier return JSValue::encode(JSFunction::create(state->vm(), state->lexicalGlobalObject(), length, propertyName.publicName(), nativeFunction)); ^~~~~~~~~~~~ In file included from /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/runtime/ArrayPrototype.cpp:25: In file included from /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/runtime/ArrayPrototype.h:23: In file included from /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/runtime/JSArray.h:24: In file included from /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/runtime/ButterflyInlines.h:28: In file included from /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/runtime/ArrayStorage.h:33: In file included from /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/runtime/Structure.h:28: In file included from /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/runtime/ClassInfo.h:25: In file included from /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/interpreter/CallFrame.h:28: /Volumes/Data/slave/sierra-cloop-debug/build/Source/JavaScriptCore/interpreter/StackVisitor.h:41:7: note: forward declaration of 'JSC::JSFunction' class JSFunction; ^
Darin Adler
Comment 11 2017-02-12 17:27:07 PST
To fix the bindings tests someone just has to regenerate the results I think. To fix the CLoop build we just need to add an include.
Ryosuke Niwa
Comment 12 2017-02-12 17:59:07 PST
Cloop build fix attempted in https://trac.webkit.org/changeset/212212.
Ryosuke Niwa
Comment 13 2017-02-12 18:01:20 PST
Rebaselined the bindings tests in https://trac.webkit.org/changeset/212213.
Note You need to log in before you can comment on or make changes to this bug.