| 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-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 | 924 |
| 925 | 925 |
| 926 void FullCodeGenerator::VisitFunctionDeclaration( | 926 void FullCodeGenerator::VisitFunctionDeclaration( |
| 927 FunctionDeclaration* declaration) { | 927 FunctionDeclaration* declaration) { |
| 928 VariableProxy* proxy = declaration->proxy(); | 928 VariableProxy* proxy = declaration->proxy(); |
| 929 Variable* variable = proxy->var(); | 929 Variable* variable = proxy->var(); |
| 930 switch (variable->location()) { | 930 switch (variable->location()) { |
| 931 case Variable::UNALLOCATED: { | 931 case Variable::UNALLOCATED: { |
| 932 globals_->Add(variable->name(), zone()); | 932 globals_->Add(variable->name(), zone()); |
| 933 Handle<SharedFunctionInfo> function = | 933 Handle<SharedFunctionInfo> function = |
| 934 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); | 934 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); |
| 935 // Check for stack overflow exception. | 935 // Check for stack overflow exception. |
| 936 if (function.is_null()) return SetStackOverflow(); | 936 if (function.is_null()) return SetStackOverflow(); |
| 937 globals_->Add(function, zone()); | 937 globals_->Add(function, zone()); |
| 938 break; | 938 break; |
| 939 } | 939 } |
| 940 | 940 |
| 941 case Variable::PARAMETER: | 941 case Variable::PARAMETER: |
| 942 case Variable::LOCAL: { | 942 case Variable::LOCAL: { |
| 943 Comment cmnt(masm_, "[ Function Declaration"); | 943 Comment cmnt(masm_, "[ Function Declaration"); |
| 944 VisitForAccumulatorValue(declaration->fun()); | 944 VisitForAccumulatorValue(declaration->fun()); |
| (...skipping 4641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5586 } | 5586 } |
| 5587 | 5587 |
| 5588 return INTERRUPT; | 5588 return INTERRUPT; |
| 5589 } | 5589 } |
| 5590 | 5590 |
| 5591 | 5591 |
| 5592 } // namespace internal | 5592 } // namespace internal |
| 5593 } // namespace v8 | 5593 } // namespace v8 |
| 5594 | 5594 |
| 5595 #endif // V8_TARGET_ARCH_ARM64 | 5595 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |