| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 void FullCodeGenerator::VisitFunctionDeclaration( | 790 void FullCodeGenerator::VisitFunctionDeclaration( |
| 791 FunctionDeclaration* declaration) { | 791 FunctionDeclaration* declaration) { |
| 792 VariableProxy* proxy = declaration->proxy(); | 792 VariableProxy* proxy = declaration->proxy(); |
| 793 Variable* variable = proxy->var(); | 793 Variable* variable = proxy->var(); |
| 794 switch (variable->location()) { | 794 switch (variable->location()) { |
| 795 case VariableLocation::UNALLOCATED: { | 795 case VariableLocation::UNALLOCATED: { |
| 796 globals_->Add(variable->name(), zone()); | 796 globals_->Add(variable->name(), zone()); |
| 797 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); | 797 FeedbackVectorSlot slot = proxy->VariableFeedbackSlot(); |
| 798 DCHECK(!slot.IsInvalid()); | 798 DCHECK(!slot.IsInvalid()); |
| 799 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); | 799 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); |
| 800 Handle<SharedFunctionInfo> function = | 800 Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo( |
| 801 Compiler::GetSharedFunctionInfo(declaration->fun(), script(), info_); | 801 declaration->fun(), script(), info_, compilation_mode_); |
| 802 // Check for stack-overflow exception. | 802 // Check for stack-overflow exception. |
| 803 if (function.is_null()) return SetStackOverflow(); | 803 if (function.is_null()) return SetStackOverflow(); |
| 804 globals_->Add(function, zone()); | 804 globals_->Add(function, zone()); |
| 805 break; | 805 break; |
| 806 } | 806 } |
| 807 | 807 |
| 808 case VariableLocation::PARAMETER: | 808 case VariableLocation::PARAMETER: |
| 809 case VariableLocation::LOCAL: { | 809 case VariableLocation::LOCAL: { |
| 810 Comment cmnt(masm_, "[ FunctionDeclaration"); | 810 Comment cmnt(masm_, "[ FunctionDeclaration"); |
| 811 VisitForAccumulatorValue(declaration->fun()); | 811 VisitForAccumulatorValue(declaration->fun()); |
| (...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2886 reinterpret_cast<uint64_t>( | 2886 reinterpret_cast<uint64_t>( |
| 2887 isolate->builtins()->OnStackReplacement()->entry())); | 2887 isolate->builtins()->OnStackReplacement()->entry())); |
| 2888 return ON_STACK_REPLACEMENT; | 2888 return ON_STACK_REPLACEMENT; |
| 2889 } | 2889 } |
| 2890 | 2890 |
| 2891 | 2891 |
| 2892 } // namespace internal | 2892 } // namespace internal |
| 2893 } // namespace v8 | 2893 } // namespace v8 |
| 2894 | 2894 |
| 2895 #endif // V8_TARGET_ARCH_MIPS64 | 2895 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |