[Webkit-unassigned] [Bug 144955] [ES6] Implement ES6 arrow function syntax. Parser of arrow function with execution as common function

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 6 09:49:24 PDT 2015


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

--- Comment #47 from Yusuke Suzuki <utatane.tea at gmail.com> ---
Comment on attachment 254239
  --> https://bugs.webkit.org/attachment.cgi?id=254239
Patch

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

I can review (partially) this if it's limited to parser's change. In profiler part, I think I'm not a right reviewer.

> Source/JavaScriptCore/parser/Parser.cpp:2023
> +    bool doParseConditionalExpression = false;

I think `shouldParseConditionalExpression` is better.

> Source/JavaScriptCore/parser/Parser.cpp:2027
> +    doParseConditionalExpression = !isArrowFunctionEmptyParamterList();

In isArrowFunctionEmptyPararmeterList, we create SavePoint. So I think the above `createSavevPoint` and SavePoint are duplicate.
Could you change to the implementation that `isArrowFunctionEmptyParamterList` always restore the state?
With that implementation, the above SavePoint is not necessary.

-- 
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/20150606/cf9bc197/attachment-0001.html>


More information about the webkit-unassigned mailing list