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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 | 901 |
902 | 902 |
903 void FullCodeGenerator::VisitFunctionDeclaration( | 903 void FullCodeGenerator::VisitFunctionDeclaration( |
904 FunctionDeclaration* declaration) { | 904 FunctionDeclaration* declaration) { |
905 VariableProxy* proxy = declaration->proxy(); | 905 VariableProxy* proxy = declaration->proxy(); |
906 Variable* variable = proxy->var(); | 906 Variable* variable = proxy->var(); |
907 switch (variable->location()) { | 907 switch (variable->location()) { |
908 case Variable::UNALLOCATED: { | 908 case Variable::UNALLOCATED: { |
909 globals_->Add(variable->name(), zone()); | 909 globals_->Add(variable->name(), zone()); |
910 Handle<SharedFunctionInfo> function = | 910 Handle<SharedFunctionInfo> function = |
911 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); | 911 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
912 // Check for stack-overflow exception. | 912 // Check for stack-overflow exception. |
913 if (function.is_null()) return SetStackOverflow(); | 913 if (function.is_null()) return SetStackOverflow(); |
914 globals_->Add(function, zone()); | 914 globals_->Add(function, zone()); |
915 break; | 915 break; |
916 } | 916 } |
917 | 917 |
918 case Variable::PARAMETER: | 918 case Variable::PARAMETER: |
919 case Variable::LOCAL: { | 919 case Variable::LOCAL: { |
920 Comment cmnt(masm_, "[ FunctionDeclaration"); | 920 Comment cmnt(masm_, "[ FunctionDeclaration"); |
921 VisitForAccumulatorValue(declaration->fun()); | 921 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 4645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5567 return ON_STACK_REPLACEMENT; | 5567 return ON_STACK_REPLACEMENT; |
5568 } | 5568 } |
5569 | 5569 |
5570 DCHECK(interrupt_address == | 5570 DCHECK(interrupt_address == |
5571 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5571 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5572 return OSR_AFTER_STACK_CHECK; | 5572 return OSR_AFTER_STACK_CHECK; |
5573 } | 5573 } |
5574 } // namespace internal | 5574 } // namespace internal |
5575 } // namespace v8 | 5575 } // namespace v8 |
5576 #endif // V8_TARGET_ARCH_PPC | 5576 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |