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

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

Issue 407383003: Propagate serialization flag to inner functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler.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/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
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
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
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698