| 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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 | 872 |
| 873 | 873 |
| 874 void FullCodeGenerator::VisitFunctionDeclaration( | 874 void FullCodeGenerator::VisitFunctionDeclaration( |
| 875 FunctionDeclaration* declaration) { | 875 FunctionDeclaration* declaration) { |
| 876 VariableProxy* proxy = declaration->proxy(); | 876 VariableProxy* proxy = declaration->proxy(); |
| 877 Variable* variable = proxy->var(); | 877 Variable* variable = proxy->var(); |
| 878 switch (variable->location()) { | 878 switch (variable->location()) { |
| 879 case Variable::UNALLOCATED: { | 879 case Variable::UNALLOCATED: { |
| 880 globals_->Add(variable->name(), zone()); | 880 globals_->Add(variable->name(), zone()); |
| 881 Handle<SharedFunctionInfo> function = | 881 Handle<SharedFunctionInfo> function = |
| 882 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); | 882 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); |
| 883 // Check for stack-overflow exception. | 883 // Check for stack-overflow exception. |
| 884 if (function.is_null()) return SetStackOverflow(); | 884 if (function.is_null()) return SetStackOverflow(); |
| 885 globals_->Add(function, zone()); | 885 globals_->Add(function, zone()); |
| 886 break; | 886 break; |
| 887 } | 887 } |
| 888 | 888 |
| 889 case Variable::PARAMETER: | 889 case Variable::PARAMETER: |
| 890 case Variable::LOCAL: { | 890 case Variable::LOCAL: { |
| 891 Comment cmnt(masm_, "[ FunctionDeclaration"); | 891 Comment cmnt(masm_, "[ FunctionDeclaration"); |
| 892 VisitForAccumulatorValue(declaration->fun()); | 892 VisitForAccumulatorValue(declaration->fun()); |
| (...skipping 4590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5483 Assembler::target_address_at(call_target_address, | 5483 Assembler::target_address_at(call_target_address, |
| 5484 unoptimized_code)); | 5484 unoptimized_code)); |
| 5485 return OSR_AFTER_STACK_CHECK; | 5485 return OSR_AFTER_STACK_CHECK; |
| 5486 } | 5486 } |
| 5487 | 5487 |
| 5488 | 5488 |
| 5489 } // namespace internal | 5489 } // namespace internal |
| 5490 } // namespace v8 | 5490 } // namespace v8 |
| 5491 | 5491 |
| 5492 #endif // V8_TARGET_ARCH_IA32 | 5492 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |