| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "codegen.h" | 7 #include "codegen.h" |
| 8 #include "compiler.h" | 8 #include "compiler.h" |
| 9 #include "debug.h" | 9 #include "debug.h" |
| 10 #include "full-codegen.h" | 10 #include "full-codegen.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 | 189 |
| 190 void BreakableStatementChecker::VisitVariableProxy(VariableProxy* expr) { | 190 void BreakableStatementChecker::VisitVariableProxy(VariableProxy* expr) { |
| 191 } | 191 } |
| 192 | 192 |
| 193 | 193 |
| 194 void BreakableStatementChecker::VisitLiteral(Literal* expr) { | 194 void BreakableStatementChecker::VisitLiteral(Literal* expr) { |
| 195 } | 195 } |
| 196 | 196 |
| 197 | 197 |
| 198 void BreakableStatementChecker::VisitStringLiteral(StringLiteral* expr) { |
| 199 } |
| 200 |
| 201 |
| 202 void BreakableStatementChecker::VisitNumberLiteral(NumberLiteral* expr) { |
| 203 } |
| 204 |
| 205 |
| 198 void BreakableStatementChecker::VisitRegExpLiteral(RegExpLiteral* expr) { | 206 void BreakableStatementChecker::VisitRegExpLiteral(RegExpLiteral* expr) { |
| 199 } | 207 } |
| 200 | 208 |
| 201 | 209 |
| 202 void BreakableStatementChecker::VisitObjectLiteral(ObjectLiteral* expr) { | 210 void BreakableStatementChecker::VisitObjectLiteral(ObjectLiteral* expr) { |
| 203 } | 211 } |
| 204 | 212 |
| 205 | 213 |
| 206 void BreakableStatementChecker::VisitArrayLiteral(ArrayLiteral* expr) { | 214 void BreakableStatementChecker::VisitArrayLiteral(ArrayLiteral* expr) { |
| 207 } | 215 } |
| (...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1515 } | 1523 } |
| 1516 } | 1524 } |
| 1517 | 1525 |
| 1518 | 1526 |
| 1519 void FullCodeGenerator::VisitLiteral(Literal* expr) { | 1527 void FullCodeGenerator::VisitLiteral(Literal* expr) { |
| 1520 Comment cmnt(masm_, "[ Literal"); | 1528 Comment cmnt(masm_, "[ Literal"); |
| 1521 context()->Plug(expr->value()); | 1529 context()->Plug(expr->value()); |
| 1522 } | 1530 } |
| 1523 | 1531 |
| 1524 | 1532 |
| 1533 void FullCodeGenerator::VisitStringLiteral(StringLiteral* expr) { |
| 1534 VisitLiteral(expr); |
| 1535 } |
| 1536 |
| 1537 |
| 1538 void FullCodeGenerator::VisitNumberLiteral(NumberLiteral* expr) { |
| 1539 VisitLiteral(expr); |
| 1540 } |
| 1541 |
| 1542 |
| 1525 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { | 1543 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 1526 Comment cmnt(masm_, "[ FunctionLiteral"); | 1544 Comment cmnt(masm_, "[ FunctionLiteral"); |
| 1527 | 1545 |
| 1528 // Build the function boilerplate and instantiate it. | 1546 // Build the function boilerplate and instantiate it. |
| 1529 Handle<SharedFunctionInfo> function_info = | 1547 Handle<SharedFunctionInfo> function_info = |
| 1530 Compiler::BuildFunctionInfo(expr, script()); | 1548 Compiler::BuildFunctionInfo(expr, script()); |
| 1531 if (function_info.is_null()) { | 1549 if (function_info.is_null()) { |
| 1532 SetStackOverflow(); | 1550 SetStackOverflow(); |
| 1533 return; | 1551 return; |
| 1534 } | 1552 } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1697 } | 1715 } |
| 1698 return true; | 1716 return true; |
| 1699 } | 1717 } |
| 1700 #endif // DEBUG | 1718 #endif // DEBUG |
| 1701 | 1719 |
| 1702 | 1720 |
| 1703 #undef __ | 1721 #undef __ |
| 1704 | 1722 |
| 1705 | 1723 |
| 1706 } } // namespace v8::internal | 1724 } } // namespace v8::internal |
| OLD | NEW |