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

Side by Side Diff: src/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/x64/full-codegen-x64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 860
861 861
862 void FullCodeGenerator::VisitFunctionDeclaration( 862 void FullCodeGenerator::VisitFunctionDeclaration(
863 FunctionDeclaration* declaration) { 863 FunctionDeclaration* declaration) {
864 VariableProxy* proxy = declaration->proxy(); 864 VariableProxy* proxy = declaration->proxy();
865 Variable* variable = proxy->var(); 865 Variable* variable = proxy->var();
866 switch (variable->location()) { 866 switch (variable->location()) {
867 case Variable::UNALLOCATED: { 867 case Variable::UNALLOCATED: {
868 globals_->Add(variable->name(), zone()); 868 globals_->Add(variable->name(), zone());
869 Handle<SharedFunctionInfo> function = 869 Handle<SharedFunctionInfo> function =
870 Compiler::BuildFunctionInfo(declaration->fun(), script()); 870 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_);
871 // Check for stack-overflow exception. 871 // Check for stack-overflow exception.
872 if (function.is_null()) return SetStackOverflow(); 872 if (function.is_null()) return SetStackOverflow();
873 globals_->Add(function, zone()); 873 globals_->Add(function, zone());
874 break; 874 break;
875 } 875 }
876 876
877 case Variable::PARAMETER: 877 case Variable::PARAMETER:
878 case Variable::LOCAL: { 878 case Variable::LOCAL: {
879 Comment cmnt(masm_, "[ FunctionDeclaration"); 879 Comment cmnt(masm_, "[ FunctionDeclaration");
880 VisitForAccumulatorValue(declaration->fun()); 880 VisitForAccumulatorValue(declaration->fun());
(...skipping 4011 matching lines...) Expand 10 before | Expand all | Expand 10 after
4892 Assembler::target_address_at(pc_immediate_load_address)) == 4892 Assembler::target_address_at(pc_immediate_load_address)) ==
4893 reinterpret_cast<uint64_t>( 4893 reinterpret_cast<uint64_t>(
4894 isolate->builtins()->OsrAfterStackCheck()->entry())); 4894 isolate->builtins()->OsrAfterStackCheck()->entry()));
4895 return OSR_AFTER_STACK_CHECK; 4895 return OSR_AFTER_STACK_CHECK;
4896 } 4896 }
4897 4897
4898 4898
4899 } } // namespace v8::internal 4899 } } // namespace v8::internal
4900 4900
4901 #endif // V8_TARGET_ARCH_MIPS64 4901 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698