OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
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 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 | 867 |
868 | 868 |
869 void FullCodeGenerator::VisitFunctionDeclaration( | 869 void FullCodeGenerator::VisitFunctionDeclaration( |
870 FunctionDeclaration* declaration) { | 870 FunctionDeclaration* declaration) { |
871 VariableProxy* proxy = declaration->proxy(); | 871 VariableProxy* proxy = declaration->proxy(); |
872 Variable* variable = proxy->var(); | 872 Variable* variable = proxy->var(); |
873 switch (variable->location()) { | 873 switch (variable->location()) { |
874 case Variable::UNALLOCATED: { | 874 case Variable::UNALLOCATED: { |
875 globals_->Add(variable->name(), zone()); | 875 globals_->Add(variable->name(), zone()); |
876 Handle<SharedFunctionInfo> function = | 876 Handle<SharedFunctionInfo> function = |
877 Compiler::BuildFunctionInfo(declaration->fun(), script()); | 877 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); |
878 // Check for stack overflow exception. | 878 // Check for stack overflow exception. |
879 if (function.is_null()) return SetStackOverflow(); | 879 if (function.is_null()) return SetStackOverflow(); |
880 globals_->Add(function, zone()); | 880 globals_->Add(function, zone()); |
881 break; | 881 break; |
882 } | 882 } |
883 | 883 |
884 case Variable::PARAMETER: | 884 case Variable::PARAMETER: |
885 case Variable::LOCAL: { | 885 case Variable::LOCAL: { |
886 Comment cmnt(masm_, "[ Function Declaration"); | 886 Comment cmnt(masm_, "[ Function Declaration"); |
887 VisitForAccumulatorValue(declaration->fun()); | 887 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 4034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4922 return previous_; | 4922 return previous_; |
4923 } | 4923 } |
4924 | 4924 |
4925 | 4925 |
4926 #undef __ | 4926 #undef __ |
4927 | 4927 |
4928 | 4928 |
4929 } } // namespace v8::internal | 4929 } } // namespace v8::internal |
4930 | 4930 |
4931 #endif // V8_TARGET_ARCH_ARM64 | 4931 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |