<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [JSC] implement async functions proposal"
href="https://bugs.webkit.org/show_bug.cgi?id=156147#c108">Comment # 108</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [JSC] implement async functions proposal"
href="https://bugs.webkit.org/show_bug.cgi?id=156147">bug 156147</a>
from <span class="vcard"><a class="email" href="mailto:sbarati@apple.com" title="Saam Barati <sbarati@apple.com>"> <span class="fn">Saam Barati</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=156147#c107">comment #107</a>)
<span class="quote">> something like
>
> ```
> // private members of class Parser:
> #define JSC_DECLARE_RUNTIME_FLAG_BOOL(name, isEnabledFlag) bool m_is##name;
> JSC_RUNTIME_FLAG(JSC_DECLARE_RUNTIME_FLAG_BOOLEAN)
>
> // Parser constructor:
> #define JSC_INITIALIZE_PARSER_RUNTIME_FLAGS(name, isEnabledFlag) \
> m_is##name = runtimeFlags.is##name();
> JSC_RUNTIME_FLAG_(JSC_INITIALIZE_PARSER_RUNTIME_FLAGS)
> ```
>
> and replace `m_runtimeFlags` accesses with more direct things? I wouldn't
> want to make the RuntimeFlags class too fat, since it gets copied around a
> lot, but maybe only doing the heavy copying in the Parser constructor is
> okay.
>
> I'll try it and see how it goes, I guess</span >
You can also add a field into Parser that copies out the flag at Parser construction time.
Have you tried making async a key word?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>