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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 | 864 |
865 | 865 |
866 void FullCodeGenerator::VisitFunctionDeclaration( | 866 void FullCodeGenerator::VisitFunctionDeclaration( |
867 FunctionDeclaration* declaration) { | 867 FunctionDeclaration* declaration) { |
868 VariableProxy* proxy = declaration->proxy(); | 868 VariableProxy* proxy = declaration->proxy(); |
869 Variable* variable = proxy->var(); | 869 Variable* variable = proxy->var(); |
870 switch (variable->location()) { | 870 switch (variable->location()) { |
871 case Variable::UNALLOCATED: { | 871 case Variable::UNALLOCATED: { |
872 globals_->Add(variable->name(), zone()); | 872 globals_->Add(variable->name(), zone()); |
873 Handle<SharedFunctionInfo> function = | 873 Handle<SharedFunctionInfo> function = |
874 Compiler::BuildFunctionInfo(declaration->fun(), script()); | 874 Compiler::BuildFunctionInfo(declaration->fun(), script(), info_); |
875 // Check for stack-overflow exception. | 875 // Check for stack-overflow exception. |
876 if (function.is_null()) return SetStackOverflow(); | 876 if (function.is_null()) return SetStackOverflow(); |
877 globals_->Add(function, zone()); | 877 globals_->Add(function, zone()); |
878 break; | 878 break; |
879 } | 879 } |
880 | 880 |
881 case Variable::PARAMETER: | 881 case Variable::PARAMETER: |
882 case Variable::LOCAL: { | 882 case Variable::LOCAL: { |
883 Comment cmnt(masm_, "[ FunctionDeclaration"); | 883 Comment cmnt(masm_, "[ FunctionDeclaration"); |
884 VisitForAccumulatorValue(declaration->fun()); | 884 VisitForAccumulatorValue(declaration->fun()); |
(...skipping 4005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4890 Assembler::target_address_at(pc_immediate_load_address)) == | 4890 Assembler::target_address_at(pc_immediate_load_address)) == |
4891 reinterpret_cast<uint32_t>( | 4891 reinterpret_cast<uint32_t>( |
4892 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4892 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4893 return OSR_AFTER_STACK_CHECK; | 4893 return OSR_AFTER_STACK_CHECK; |
4894 } | 4894 } |
4895 | 4895 |
4896 | 4896 |
4897 } } // namespace v8::internal | 4897 } } // namespace v8::internal |
4898 | 4898 |
4899 #endif // V8_TARGET_ARCH_MIPS | 4899 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |