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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/ast-numbering.h" 8 #include "src/ast-numbering.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 202
203 void BreakableStatementChecker::VisitVariableProxy(VariableProxy* expr) { 203 void BreakableStatementChecker::VisitVariableProxy(VariableProxy* expr) {
204 } 204 }
205 205
206 206
207 void BreakableStatementChecker::VisitLiteral(Literal* expr) { 207 void BreakableStatementChecker::VisitLiteral(Literal* expr) {
208 } 208 }
209 209
210 210
211 void BreakableStatementChecker::VisitTemplateLiteral(TemplateLiteral* node) {}
212
213
211 void BreakableStatementChecker::VisitRegExpLiteral(RegExpLiteral* expr) { 214 void BreakableStatementChecker::VisitRegExpLiteral(RegExpLiteral* expr) {
212 } 215 }
213 216
214 217
215 void BreakableStatementChecker::VisitObjectLiteral(ObjectLiteral* expr) { 218 void BreakableStatementChecker::VisitObjectLiteral(ObjectLiteral* expr) {
216 } 219 }
217 220
218 221
219 void BreakableStatementChecker::VisitArrayLiteral(ArrayLiteral* expr) { 222 void BreakableStatementChecker::VisitArrayLiteral(ArrayLiteral* expr) {
220 } 223 }
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 } 1542 }
1540 } 1543 }
1541 1544
1542 1545
1543 void FullCodeGenerator::VisitLiteral(Literal* expr) { 1546 void FullCodeGenerator::VisitLiteral(Literal* expr) {
1544 Comment cmnt(masm_, "[ Literal"); 1547 Comment cmnt(masm_, "[ Literal");
1545 context()->Plug(expr->value()); 1548 context()->Plug(expr->value());
1546 } 1549 }
1547 1550
1548 1551
1552 void FullCodeGenerator::VisitTemplateLiteral(TemplateLiteral* expr) {
1553 Comment cmnt(masm_, "[ TemplateLiteral");
1554 context()->Plug(isolate()->factory()->undefined_value());
1555 }
1556
1557
1549 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { 1558 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) {
1550 Comment cmnt(masm_, "[ FunctionLiteral"); 1559 Comment cmnt(masm_, "[ FunctionLiteral");
1551 1560
1552 // Build the function boilerplate and instantiate it. 1561 // Build the function boilerplate and instantiate it.
1553 Handle<SharedFunctionInfo> function_info = 1562 Handle<SharedFunctionInfo> function_info =
1554 Compiler::BuildFunctionInfo(expr, script(), info_); 1563 Compiler::BuildFunctionInfo(expr, script(), info_);
1555 if (function_info.is_null()) { 1564 if (function_info.is_null()) {
1556 SetStackOverflow(); 1565 SetStackOverflow();
1557 return; 1566 return;
1558 } 1567 }
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 } 1760 }
1752 return true; 1761 return true;
1753 } 1762 }
1754 #endif // DEBUG 1763 #endif // DEBUG
1755 1764
1756 1765
1757 #undef __ 1766 #undef __
1758 1767
1759 1768
1760 } } // namespace v8::internal 1769 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698