OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 | 891 |
892 | 892 |
893 void FullCodeGenerator::VisitFunctionDeclaration( | 893 void FullCodeGenerator::VisitFunctionDeclaration( |
894 FunctionDeclaration* declaration) { | 894 FunctionDeclaration* declaration) { |
895 VariableProxy* proxy = declaration->proxy(); | 895 VariableProxy* proxy = declaration->proxy(); |
896 Variable* variable = proxy->var(); | 896 Variable* variable = proxy->var(); |
897 switch (variable->location()) { | 897 switch (variable->location()) { |
898 case Variable::UNALLOCATED: { | 898 case Variable::UNALLOCATED: { |
899 globals_->Add(variable->name(), zone()); | 899 globals_->Add(variable->name(), zone()); |
900 Handle<SharedFunctionInfo> function = | 900 Handle<SharedFunctionInfo> function = |
901 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); | 901 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
902 // Check for stack-overflow exception. | 902 // Check for stack-overflow exception. |
903 if (function.is_null()) return SetStackOverflow(); | 903 if (function.is_null()) return SetStackOverflow(); |
904 globals_->Add(function, zone()); | 904 globals_->Add(function, zone()); |
905 break; | 905 break; |
906 } | 906 } |
907 | 907 |
908 case Variable::PARAMETER: | 908 case Variable::PARAMETER: |
909 case Variable::LOCAL: { | 909 case Variable::LOCAL: { |
910 Comment cmnt(masm_, "[ FunctionDeclaration"); | 910 Comment cmnt(masm_, "[ FunctionDeclaration"); |
911 VisitForAccumulatorValue(declaration->fun()); | 911 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 4661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5573 return ON_STACK_REPLACEMENT; | 5573 return ON_STACK_REPLACEMENT; |
5574 } | 5574 } |
5575 | 5575 |
5576 DCHECK(interrupt_address == | 5576 DCHECK(interrupt_address == |
5577 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5577 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5578 return OSR_AFTER_STACK_CHECK; | 5578 return OSR_AFTER_STACK_CHECK; |
5579 } | 5579 } |
5580 } // namespace internal | 5580 } // namespace internal |
5581 } // namespace v8 | 5581 } // namespace v8 |
5582 #endif // V8_TARGET_ARCH_PPC | 5582 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |