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

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: 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
Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 9d31cd5230f1315663bb3e1f2d5d17bc6bcd4927..dc4d7d56fcbb767eddacb963f8a6e12e4a79e026 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,12 @@ void FullCodeGenerator::VisitLiteral(Literal* expr) {
}
+void FullCodeGenerator::VisitTemplateLiteral(TemplateLiteral* expr) {
+ Comment cmnt(masm_, "[ TemplateLiteral");
+ context()->Plug(isolate()->factory()->undefined_value());
+}
+
+
void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) {
Comment cmnt(masm_, "[ FunctionLiteral");

Powered by Google App Engine
This is Rietveld 408576698