| 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/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
| 9 #include "src/debug.h" | 9 #include "src/debug.h" |
| 10 #include "src/full-codegen.h" | 10 #include "src/full-codegen.h" |
| (...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 Comment cmnt(masm_, "[ Literal"); | 1505 Comment cmnt(masm_, "[ Literal"); |
| 1506 context()->Plug(expr->value()); | 1506 context()->Plug(expr->value()); |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 | 1509 |
| 1510 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { | 1510 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 1511 Comment cmnt(masm_, "[ FunctionLiteral"); | 1511 Comment cmnt(masm_, "[ FunctionLiteral"); |
| 1512 | 1512 |
| 1513 // Build the function boilerplate and instantiate it. | 1513 // Build the function boilerplate and instantiate it. |
| 1514 Handle<SharedFunctionInfo> function_info = | 1514 Handle<SharedFunctionInfo> function_info = |
| 1515 Compiler::BuildFunctionInfo(expr, script()); | 1515 Compiler::BuildFunctionInfo(expr, script(), info_); |
| 1516 if (function_info.is_null()) { | 1516 if (function_info.is_null()) { |
| 1517 SetStackOverflow(); | 1517 SetStackOverflow(); |
| 1518 return; | 1518 return; |
| 1519 } | 1519 } |
| 1520 EmitNewClosure(function_info, expr->pretenure()); | 1520 EmitNewClosure(function_info, expr->pretenure()); |
| 1521 } | 1521 } |
| 1522 | 1522 |
| 1523 | 1523 |
| 1524 void FullCodeGenerator::VisitNativeFunctionLiteral( | 1524 void FullCodeGenerator::VisitNativeFunctionLiteral( |
| 1525 NativeFunctionLiteral* expr) { | 1525 NativeFunctionLiteral* expr) { |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1682 } | 1682 } |
| 1683 return true; | 1683 return true; |
| 1684 } | 1684 } |
| 1685 #endif // DEBUG | 1685 #endif // DEBUG |
| 1686 | 1686 |
| 1687 | 1687 |
| 1688 #undef __ | 1688 #undef __ |
| 1689 | 1689 |
| 1690 | 1690 |
| 1691 } } // namespace v8::internal | 1691 } } // namespace v8::internal |
| OLD | NEW |