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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 | 923 |
924 | 924 |
925 void FullCodeGenerator::VisitFunctionDeclaration( | 925 void FullCodeGenerator::VisitFunctionDeclaration( |
926 FunctionDeclaration* declaration) { | 926 FunctionDeclaration* declaration) { |
927 VariableProxy* proxy = declaration->proxy(); | 927 VariableProxy* proxy = declaration->proxy(); |
928 Variable* variable = proxy->var(); | 928 Variable* variable = proxy->var(); |
929 switch (variable->location()) { | 929 switch (variable->location()) { |
930 case Variable::UNALLOCATED: { | 930 case Variable::UNALLOCATED: { |
931 globals_->Add(variable->name(), zone()); | 931 globals_->Add(variable->name(), zone()); |
932 Handle<SharedFunctionInfo> function = | 932 Handle<SharedFunctionInfo> function = |
933 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); | 933 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); |
934 // Check for stack-overflow exception. | 934 // Check for stack-overflow exception. |
935 if (function.is_null()) return SetStackOverflow(); | 935 if (function.is_null()) return SetStackOverflow(); |
936 globals_->Add(function, zone()); | 936 globals_->Add(function, zone()); |
937 break; | 937 break; |
938 } | 938 } |
939 | 939 |
940 case Variable::PARAMETER: | 940 case Variable::PARAMETER: |
941 case Variable::LOCAL: { | 941 case Variable::LOCAL: { |
942 Comment cmnt(masm_, "[ FunctionDeclaration"); | 942 Comment cmnt(masm_, "[ FunctionDeclaration"); |
943 VisitForAccumulatorValue(declaration->fun()); | 943 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 4624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5568 reinterpret_cast<uint64_t>( | 5568 reinterpret_cast<uint64_t>( |
5569 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5569 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5570 return OSR_AFTER_STACK_CHECK; | 5570 return OSR_AFTER_STACK_CHECK; |
5571 } | 5571 } |
5572 | 5572 |
5573 | 5573 |
5574 } // namespace internal | 5574 } // namespace internal |
5575 } // namespace v8 | 5575 } // namespace v8 |
5576 | 5576 |
5577 #endif // V8_TARGET_ARCH_MIPS64 | 5577 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |