RESOLVED FIXED 143183
[ES6] Implement tagged templates
https://bugs.webkit.org/show_bug.cgi?id=143183
Summary [ES6] Implement tagged templates
Yusuke Suzuki
Reported 2015-03-28 02:32:54 PDT
Implement tagged templates, like String.raw`Hello ${world}`
Attachments
Patch (85.13 KB, patch)
2015-05-08 21:22 PDT, Yusuke Suzuki
no flags
Patch (85.62 KB, patch)
2015-05-14 01:48 PDT, Yusuke Suzuki
no flags
Yusuke Suzuki
Comment 1 2015-05-08 21:22:07 PDT
Oliver Hunt
Comment 2 2015-05-13 15:27:15 PDT
Comment on attachment 252767 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252767&action=review r-, but literally just for the tweaks mentioned above. > Source/JavaScriptCore/parser/Parser.h:781 > + template <class TreeBuilder> NEVER_INLINE typename TreeBuilder::TemplateLiteral parseTemplateLiteral(TreeBuilder&, bool shouldBuildRawStrings); Can you replace this bool with a clearly named enum? In general we've shied away from opaque bool parameters as you can't necessarily tells what's going on -- especially in the earlier call 'parseTemplateLiteral(context, false) Overall it looks good though. > Source/JavaScriptCore/parser/SyntaxChecker.h:85 > + TemplateStringResult, TemplateStringListResult, TemplateExpressionListResult, TemplateExpr, TaggedTemplateExpr i'd split the line at this point
Yusuke Suzuki
Comment 3 2015-05-14 01:48:10 PDT
Yusuke Suzuki
Comment 4 2015-05-14 01:53:23 PDT
Comment on attachment 252767 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252767&action=review Thank you for your review :D >> Source/JavaScriptCore/parser/Parser.h:781 >> + template <class TreeBuilder> NEVER_INLINE typename TreeBuilder::TemplateLiteral parseTemplateLiteral(TreeBuilder&, bool shouldBuildRawStrings); > > Can you replace this bool with a clearly named enum? In general we've shied away from opaque bool parameters as you can't necessarily tells what's going on -- especially in the earlier call 'parseTemplateLiteral(context, false) > > Overall it looks good though. Make sense! OK, I've introduced enum class RawStringsBuildMode { BuildRawStrings, DontBuildRawStrings }. >> Source/JavaScriptCore/parser/SyntaxChecker.h:85 >> + TemplateStringResult, TemplateStringListResult, TemplateExpressionListResult, TemplateExpr, TaggedTemplateExpr > > i'd split the line at this point Splitted into TemplateStringResult, TemplateStringListResult, TemplateExpressionListResult, TemplateExpr, TaggedTemplateExpr
WebKit Commit Bot
Comment 5 2015-05-14 09:09:23 PDT
Comment on attachment 253114 [details] Patch Clearing flags on attachment: 253114 Committed r184337: <http://trac.webkit.org/changeset/184337>
WebKit Commit Bot
Comment 6 2015-05-14 09:09:28 PDT
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 7 2015-05-14 11:45:54 PDT
(In reply to comment #5) > Comment on attachment 253114 [details] > Patch > > Clearing flags on attachment: 253114 > > Committed r184337: <http://trac.webkit.org/changeset/184337> It caused zillion failures on the debug bots. Don't you watch the bots after landing patches? You should.
Yusuke Suzuki
Comment 8 2015-05-14 11:46:47 PDT
(In reply to comment #7) > (In reply to comment #5) > > Comment on attachment 253114 [details] > > Patch > > > > Clearing flags on attachment: 253114 > > > > Committed r184337: <http://trac.webkit.org/changeset/184337> > > It caused zillion failures on the debug bots. Don't > you watch the bots after landing patches? You should. Ah, currently investigating...... Sorry for troubling you.
Yusuke Suzuki
Comment 9 2015-05-14 12:01:08 PDT
Yusuke Suzuki
Comment 10 2015-05-14 13:44:45 PDT
debug builds become green. Now investigating EFL builld failures in ARM builds. https://build.webkit.org/builders/EFL%20Linux%20ARMv7%20Thumb2%20Release?numbuilds=25
Yusuke Suzuki
Comment 11 2015-05-14 14:03:30 PDT
Opened for EFL ARM build failures. https://bugs.webkit.org/show_bug.cgi?id=145019
Yusuke Suzuki
Comment 12 2015-05-14 16:53:42 PDT
Green comes back.
Note You need to log in before you can comment on or make changes to this bug.