[Webkit-unassigned] [Bug 156147] [JSC] implement async functions proposal

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 28 10:20:40 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=156147

--- Comment #108 from Saam Barati <sbarati at apple.com> ---
(In reply to comment #107)
> 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

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?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160528/868477d1/attachment.html>


More information about the webkit-unassigned mailing list