OLD | NEW |
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-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 | 863 |
864 | 864 |
865 void FullCodeGenerator::VisitFunctionDeclaration( | 865 void FullCodeGenerator::VisitFunctionDeclaration( |
866 FunctionDeclaration* declaration) { | 866 FunctionDeclaration* declaration) { |
867 VariableProxy* proxy = declaration->proxy(); | 867 VariableProxy* proxy = declaration->proxy(); |
868 Variable* variable = proxy->var(); | 868 Variable* variable = proxy->var(); |
869 switch (variable->location()) { | 869 switch (variable->location()) { |
870 case Variable::UNALLOCATED: { | 870 case Variable::UNALLOCATED: { |
871 globals_->Add(variable->name(), zone()); | 871 globals_->Add(variable->name(), zone()); |
872 Handle<SharedFunctionInfo> function = | 872 Handle<SharedFunctionInfo> function = |
873 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); | 873 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
874 // Check for stack-overflow exception. | 874 // Check for stack-overflow exception. |
875 if (function.is_null()) return SetStackOverflow(); | 875 if (function.is_null()) return SetStackOverflow(); |
876 globals_->Add(function, zone()); | 876 globals_->Add(function, zone()); |
877 break; | 877 break; |
878 } | 878 } |
879 | 879 |
880 case Variable::PARAMETER: | 880 case Variable::PARAMETER: |
881 case Variable::LOCAL: { | 881 case Variable::LOCAL: { |
882 Comment cmnt(masm_, "[ FunctionDeclaration"); | 882 Comment cmnt(masm_, "[ FunctionDeclaration"); |
883 VisitForAccumulatorValue(declaration->fun()); | 883 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 4604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5488 Assembler::target_address_at(call_target_address, | 5488 Assembler::target_address_at(call_target_address, |
5489 unoptimized_code)); | 5489 unoptimized_code)); |
5490 return OSR_AFTER_STACK_CHECK; | 5490 return OSR_AFTER_STACK_CHECK; |
5491 } | 5491 } |
5492 | 5492 |
5493 | 5493 |
5494 } // namespace internal | 5494 } // namespace internal |
5495 } // namespace v8 | 5495 } // namespace v8 |
5496 | 5496 |
5497 #endif // V8_TARGET_ARCH_IA32 | 5497 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |