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

Unified Diff: src/ast-value-factory.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/ast-value-factory.cc
diff --git a/src/ast-value-factory.cc b/src/ast-value-factory.cc
index 0a1949a69cc2b05756aa1939e1d947ebffae2b12..84ec6a2e869fd52dd0d882f99886b6b28636efcd 100644
--- a/src/ast-value-factory.cc
+++ b/src/ast-value-factory.cc
@@ -271,6 +271,13 @@ const AstConsString* AstValueFactory::NewConsString(
}
+const AstTemplateSpan* AstValueFactory::NewTemplateSpan(
+ const AstString* value, const AstString* rawValue) {
+ AstTemplateSpan* new_span = new (zone_) AstTemplateSpan(value, rawValue);
+ return new_span;
+}
+
+
void AstValueFactory::Internalize(Isolate* isolate) {
if (isolate_) {
// Everything is already internalized.
« no previous file with comments | « src/ast-value-factory.h ('k') | src/bailout-reason.h » ('j') | src/bailout-reason.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698