Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: src/full-codegen.cc

Issue 663683006: Implement ES6 Template Literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement tagged template literals Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/harmony-templates.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 9d31cd5230f1315663bb3e1f2d5d17bc6bcd4927..35dc5d538e9ba9f18efd0a2152bfbe8512aed764 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -208,6 +208,9 @@ void BreakableStatementChecker::VisitLiteral(Literal* expr) {
}
+void BreakableStatementChecker::VisitTemplateLiteral(TemplateLiteral* node) {}
+
+
void BreakableStatementChecker::VisitRegExpLiteral(RegExpLiteral* expr) {
}
@@ -1546,6 +1549,13 @@ void FullCodeGenerator::VisitLiteral(Literal* expr) {
}
+void FullCodeGenerator::VisitTemplateLiteral(TemplateLiteral* expr) {
+ // 12.2.8.2.4 --- TemplateLiteral Evaluation
+ Comment cmnt(masm_, "[ TemplateLiteral");
+ context()->Plug(isolate()->factory()->undefined_value());
+}
+
+
void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) {
Comment cmnt(masm_, "[ FunctionLiteral");
« no previous file with comments | « src/flag-definitions.h ('k') | src/harmony-templates.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698