| 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 Comment cmnt(masm_, "[ Literal"); | 1381 Comment cmnt(masm_, "[ Literal"); |
| 1382 context()->Plug(expr->value()); | 1382 context()->Plug(expr->value()); |
| 1383 } | 1383 } |
| 1384 | 1384 |
| 1385 | 1385 |
| 1386 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { | 1386 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 1387 Comment cmnt(masm_, "[ FunctionLiteral"); | 1387 Comment cmnt(masm_, "[ FunctionLiteral"); |
| 1388 | 1388 |
| 1389 // Build the function boilerplate and instantiate it. | 1389 // Build the function boilerplate and instantiate it. |
| 1390 Handle<SharedFunctionInfo> function_info = | 1390 Handle<SharedFunctionInfo> function_info = |
| 1391 Compiler::GetSharedFunctionInfo(expr, script(), info_); | 1391 Compiler::BuildFunctionInfo(expr, script(), info_); |
| 1392 if (function_info.is_null()) { | 1392 if (function_info.is_null()) { |
| 1393 SetStackOverflow(); | 1393 SetStackOverflow(); |
| 1394 return; | 1394 return; |
| 1395 } | 1395 } |
| 1396 EmitNewClosure(function_info, expr->pretenure()); | 1396 EmitNewClosure(function_info, expr->pretenure()); |
| 1397 } | 1397 } |
| 1398 | 1398 |
| 1399 | 1399 |
| 1400 void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { | 1400 void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { |
| 1401 Comment cmnt(masm_, "[ ClassLiteral"); | 1401 Comment cmnt(masm_, "[ ClassLiteral"); |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1706 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1706 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
| 1707 codegen_->scope_ = saved_scope_; | 1707 codegen_->scope_ = saved_scope_; |
| 1708 } | 1708 } |
| 1709 | 1709 |
| 1710 | 1710 |
| 1711 #undef __ | 1711 #undef __ |
| 1712 | 1712 |
| 1713 | 1713 |
| 1714 } // namespace internal | 1714 } // namespace internal |
| 1715 } // namespace v8 | 1715 } // namespace v8 |
| OLD | NEW |