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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 | 916 |
917 | 917 |
918 void FullCodeGenerator::VisitFunctionDeclaration( | 918 void FullCodeGenerator::VisitFunctionDeclaration( |
919 FunctionDeclaration* declaration) { | 919 FunctionDeclaration* declaration) { |
920 VariableProxy* proxy = declaration->proxy(); | 920 VariableProxy* proxy = declaration->proxy(); |
921 Variable* variable = proxy->var(); | 921 Variable* variable = proxy->var(); |
922 switch (variable->location()) { | 922 switch (variable->location()) { |
923 case Variable::UNALLOCATED: { | 923 case Variable::UNALLOCATED: { |
924 globals_->Add(variable->name(), zone()); | 924 globals_->Add(variable->name(), zone()); |
925 Handle<SharedFunctionInfo> function = | 925 Handle<SharedFunctionInfo> function = |
926 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); | 926 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); |
927 // Check for stack-overflow exception. | 927 // Check for stack-overflow exception. |
928 if (function.is_null()) return SetStackOverflow(); | 928 if (function.is_null()) return SetStackOverflow(); |
929 globals_->Add(function, zone()); | 929 globals_->Add(function, zone()); |
930 break; | 930 break; |
931 } | 931 } |
932 | 932 |
933 case Variable::PARAMETER: | 933 case Variable::PARAMETER: |
934 case Variable::LOCAL: { | 934 case Variable::LOCAL: { |
935 Comment cmnt(masm_, "[ FunctionDeclaration"); | 935 Comment cmnt(masm_, "[ FunctionDeclaration"); |
936 VisitForAccumulatorValue(declaration->fun()); | 936 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 4629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5566 reinterpret_cast<uint32_t>( | 5566 reinterpret_cast<uint32_t>( |
5567 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5567 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5568 return OSR_AFTER_STACK_CHECK; | 5568 return OSR_AFTER_STACK_CHECK; |
5569 } | 5569 } |
5570 | 5570 |
5571 | 5571 |
5572 } // namespace internal | 5572 } // namespace internal |
5573 } // namespace v8 | 5573 } // namespace v8 |
5574 | 5574 |
5575 #endif // V8_TARGET_ARCH_MIPS | 5575 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |