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