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

Side by Side Diff: src/ia32/full-codegen-ia32.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/hydrogen.cc ('k') | src/mips/full-codegen-mips.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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 810
811 811
812 void FullCodeGenerator::VisitFunctionDeclaration( 812 void FullCodeGenerator::VisitFunctionDeclaration(
813 FunctionDeclaration* declaration) { 813 FunctionDeclaration* declaration) {
814 VariableProxy* proxy = declaration->proxy(); 814 VariableProxy* proxy = declaration->proxy();
815 Variable* variable = proxy->var(); 815 Variable* variable = proxy->var();
816 switch (variable->location()) { 816 switch (variable->location()) {
817 case Variable::UNALLOCATED: { 817 case Variable::UNALLOCATED: {
818 globals_->Add(variable->name(), zone()); 818 globals_->Add(variable->name(), zone());
819 Handle<SharedFunctionInfo> function = 819 Handle<SharedFunctionInfo> function =
820 Compiler::BuildFunctionInfo(declaration->fun(), script()); 820 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_);
821 // Check for stack-overflow exception. 821 // Check for stack-overflow exception.
822 if (function.is_null()) return SetStackOverflow(); 822 if (function.is_null()) return SetStackOverflow();
823 globals_->Add(function, zone()); 823 globals_->Add(function, zone());
824 break; 824 break;
825 } 825 }
826 826
827 case Variable::PARAMETER: 827 case Variable::PARAMETER:
828 case Variable::LOCAL: { 828 case Variable::LOCAL: {
829 Comment cmnt(masm_, "[ FunctionDeclaration"); 829 Comment cmnt(masm_, "[ FunctionDeclaration");
830 VisitForAccumulatorValue(declaration->fun()); 830 VisitForAccumulatorValue(declaration->fun());
(...skipping 4003 matching lines...) Expand 10 before | Expand all | Expand 10 after
4834 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4834 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4835 Assembler::target_address_at(call_target_address, 4835 Assembler::target_address_at(call_target_address,
4836 unoptimized_code)); 4836 unoptimized_code));
4837 return OSR_AFTER_STACK_CHECK; 4837 return OSR_AFTER_STACK_CHECK;
4838 } 4838 }
4839 4839
4840 4840
4841 } } // namespace v8::internal 4841 } } // namespace v8::internal
4842 4842
4843 #endif // V8_TARGET_ARCH_IA32 4843 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698