[webkit-reviews] review granted: [Bug 223911] Ensure that GlobalPropertyInfo is allocated on the stack. : [Attachment 424615] proposed patch.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 30 01:35:29 PDT 2021


Yusuke Suzuki <ysuzuki at apple.com> has granted Mark Lam <mark.lam at apple.com>'s
request for review:
Bug 223911: Ensure that GlobalPropertyInfo is allocated on the stack.
https://bugs.webkit.org/show_bug.cgi?id=223911

Attachment 424615: proposed patch.

https://bugs.webkit.org/attachment.cgi?id=424615&action=review




--- Comment #2 from Yusuke Suzuki <ysuzuki at apple.com> ---
Comment on attachment 424615
  --> https://bugs.webkit.org/attachment.cgi?id=424615
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=424615&action=review

>
Source/JavaScriptCore/Scripts/wkbuiltins/builtins_generate_internals_wrapper_im
plementation.py:146
> +	   lines = ["SUPPRESS_ASAN void
JSBuiltinInternalFunctions::initialize(JSDOMGlobalObject& globalObject)",

How about putting `inline` here since this function is only called from this
file.

> Source/JavaScriptCore/runtime/JSGlobalObject.cpp:583
> +SUPPRESS_ASAN void JSGlobalObject::initStaticGlobals(VM& vm)

How about putting `inline` here since this function is only called from this
file.

> Source/JavaScriptCore/runtime/JSGlobalObject.cpp:2116
> +SUPPRESS_ASAN void JSGlobalObject::exposeDollarVM(VM& vm)

How about putting `inline` here since this function is only called from this
file.

> Source/WebCore/bindings/js/JSDOMGlobalObject.cpp:176
> +SUPPRESS_ASAN void JSDOMGlobalObject::addBuiltinGlobals(VM& vm)

How about putting `inline` here since this function is only called from this
file.

> Source/WebCore/bindings/js/JSDOMWindowBase.cpp:114
> +SUPPRESS_ASAN void JSDOMWindowBase::initStaticGlobals(JSC::VM& vm)

How about putting `inline` here since this function is only called from this
file.


More information about the webkit-reviews mailing list