Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: src/full-codegen.cc

Issue 1183733006: Keep a canonical list of shared function infos. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/factory.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698