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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 | 913 |
914 | 914 |
915 void FullCodeGenerator::VisitFunctionDeclaration( | 915 void FullCodeGenerator::VisitFunctionDeclaration( |
916 FunctionDeclaration* declaration) { | 916 FunctionDeclaration* declaration) { |
917 VariableProxy* proxy = declaration->proxy(); | 917 VariableProxy* proxy = declaration->proxy(); |
918 Variable* variable = proxy->var(); | 918 Variable* variable = proxy->var(); |
919 switch (variable->location()) { | 919 switch (variable->location()) { |
920 case Variable::UNALLOCATED: { | 920 case Variable::UNALLOCATED: { |
921 globals_->Add(variable->name(), zone()); | 921 globals_->Add(variable->name(), zone()); |
922 Handle<SharedFunctionInfo> function = | 922 Handle<SharedFunctionInfo> function = |
923 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); | 923 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
924 // Check for stack-overflow exception. | 924 // Check for stack-overflow exception. |
925 if (function.is_null()) return SetStackOverflow(); | 925 if (function.is_null()) return SetStackOverflow(); |
926 globals_->Add(function, zone()); | 926 globals_->Add(function, zone()); |
927 break; | 927 break; |
928 } | 928 } |
929 | 929 |
930 case Variable::PARAMETER: | 930 case Variable::PARAMETER: |
931 case Variable::LOCAL: { | 931 case Variable::LOCAL: { |
932 Comment cmnt(masm_, "[ FunctionDeclaration"); | 932 Comment cmnt(masm_, "[ FunctionDeclaration"); |
933 VisitForAccumulatorValue(declaration->fun()); | 933 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 4639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5573 reinterpret_cast<uint64_t>( | 5573 reinterpret_cast<uint64_t>( |
5574 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5574 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5575 return OSR_AFTER_STACK_CHECK; | 5575 return OSR_AFTER_STACK_CHECK; |
5576 } | 5576 } |
5577 | 5577 |
5578 | 5578 |
5579 } // namespace internal | 5579 } // namespace internal |
5580 } // namespace v8 | 5580 } // namespace v8 |
5581 | 5581 |
5582 #endif // V8_TARGET_ARCH_MIPS64 | 5582 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |