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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(), info_); | 870 Compiler::GetSharedFunctionInfo(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 4597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5478 Assembler::target_address_at(call_target_address, | 5478 Assembler::target_address_at(call_target_address, |
5479 unoptimized_code)); | 5479 unoptimized_code)); |
5480 return OSR_AFTER_STACK_CHECK; | 5480 return OSR_AFTER_STACK_CHECK; |
5481 } | 5481 } |
5482 | 5482 |
5483 | 5483 |
5484 } // namespace internal | 5484 } // namespace internal |
5485 } // namespace v8 | 5485 } // namespace v8 |
5486 | 5486 |
5487 #endif // V8_TARGET_ARCH_X87 | 5487 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |