| 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 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 | 927 |
| 928 | 928 |
| 929 void FullCodeGenerator::VisitFunctionDeclaration( | 929 void FullCodeGenerator::VisitFunctionDeclaration( |
| 930 FunctionDeclaration* declaration) { | 930 FunctionDeclaration* declaration) { |
| 931 VariableProxy* proxy = declaration->proxy(); | 931 VariableProxy* proxy = declaration->proxy(); |
| 932 Variable* variable = proxy->var(); | 932 Variable* variable = proxy->var(); |
| 933 switch (variable->location()) { | 933 switch (variable->location()) { |
| 934 case Variable::UNALLOCATED: { | 934 case Variable::UNALLOCATED: { |
| 935 globals_->Add(variable->name(), zone()); | 935 globals_->Add(variable->name(), zone()); |
| 936 Handle<SharedFunctionInfo> function = | 936 Handle<SharedFunctionInfo> function = |
| 937 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); | 937 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); |
| 938 // Check for stack-overflow exception. | 938 // Check for stack-overflow exception. |
| 939 if (function.is_null()) return SetStackOverflow(); | 939 if (function.is_null()) return SetStackOverflow(); |
| 940 globals_->Add(function, zone()); | 940 globals_->Add(function, zone()); |
| 941 break; | 941 break; |
| 942 } | 942 } |
| 943 | 943 |
| 944 case Variable::PARAMETER: | 944 case Variable::PARAMETER: |
| 945 case Variable::LOCAL: { | 945 case Variable::LOCAL: { |
| 946 Comment cmnt(masm_, "[ FunctionDeclaration"); | 946 Comment cmnt(masm_, "[ FunctionDeclaration"); |
| 947 VisitForAccumulatorValue(declaration->fun()); | 947 VisitForAccumulatorValue(declaration->fun()); |
| (...skipping 4614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5562 reinterpret_cast<uint32_t>( | 5562 reinterpret_cast<uint32_t>( |
| 5563 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5563 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5564 return OSR_AFTER_STACK_CHECK; | 5564 return OSR_AFTER_STACK_CHECK; |
| 5565 } | 5565 } |
| 5566 | 5566 |
| 5567 | 5567 |
| 5568 } // namespace internal | 5568 } // namespace internal |
| 5569 } // namespace v8 | 5569 } // namespace v8 |
| 5570 | 5570 |
| 5571 #endif // V8_TARGET_ARCH_MIPS | 5571 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |