| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 // 12.2.8.2.4 --- TemplateLiteral Evaluation |
| 1554 Comment cmnt(masm_, "[ TemplateLiteral"); |
| 1555 context()->Plug(isolate()->factory()->undefined_value()); |
| 1556 } |
| 1557 |
| 1558 |
| 1549 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { | 1559 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 1550 Comment cmnt(masm_, "[ FunctionLiteral"); | 1560 Comment cmnt(masm_, "[ FunctionLiteral"); |
| 1551 | 1561 |
| 1552 // Build the function boilerplate and instantiate it. | 1562 // Build the function boilerplate and instantiate it. |
| 1553 Handle<SharedFunctionInfo> function_info = | 1563 Handle<SharedFunctionInfo> function_info = |
| 1554 Compiler::BuildFunctionInfo(expr, script(), info_); | 1564 Compiler::BuildFunctionInfo(expr, script(), info_); |
| 1555 if (function_info.is_null()) { | 1565 if (function_info.is_null()) { |
| 1556 SetStackOverflow(); | 1566 SetStackOverflow(); |
| 1557 return; | 1567 return; |
| 1558 } | 1568 } |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1751 } | 1761 } |
| 1752 return true; | 1762 return true; |
| 1753 } | 1763 } |
| 1754 #endif // DEBUG | 1764 #endif // DEBUG |
| 1755 | 1765 |
| 1756 | 1766 |
| 1757 #undef __ | 1767 #undef __ |
| 1758 | 1768 |
| 1759 | 1769 |
| 1760 } } // namespace v8::internal | 1770 } } // namespace v8::internal |
| OLD | NEW |