[JSC] Remove wasmAwareLexicalGlobalObject
Created attachment 381761 [details] Patch
Created attachment 381762 [details] Patch
Created attachment 381764 [details] Patch
Created attachment 381769 [details] Patch
Created attachment 381770 [details] Patch
Comment on attachment 381770 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381770&action=review r=me with suggested improvement. > Source/JavaScriptCore/interpreter/CallFrame.cpp:356 > +JSGlobalObject* CallFrame::lexicalGlobalObjectFromWasmCallee(VM& vm) const > +{ > +#if ENABLE(WEBASSEMBLY) > + return vm.wasmContext.load()->owner<JSWebAssemblyInstance>()->globalObject(); > +#else > + UNUSED_PARAM(vm); > + return nullptr; > +#endif > +} Why not wrap the whole function in #if ENABLE(WEBASSEMBLY) and remove the #else case altogether? After all, this function can only be called if ENABLE(WEBASSEMBLY). > Source/JavaScriptCore/interpreter/CallFrame.h:170 > + JS_EXPORT_PRIVATE JSGlobalObject* lexicalGlobalObjectFromWasmCallee(VM&) const; Wrap in #if ENABLE(WEBASSEMBLY).
Comment on attachment 381770 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381770&action=review Thanks >> Source/JavaScriptCore/interpreter/CallFrame.cpp:356 >> +} > > Why not wrap the whole function in #if ENABLE(WEBASSEMBLY) and remove the #else case altogether? After all, this function can only be called if ENABLE(WEBASSEMBLY). I don't have strong preference here. OK, I'll just wrap it.
Committed r251529: <https://trac.webkit.org/changeset/251529>
<rdar://problem/56568321>