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

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

Issue 1207583002: Revert "Keep a canonical list of shared function infos." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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