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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 __ Push(info->scope()->GetScopeInfo(info->isolate())); | 187 __ Push(info->scope()->GetScopeInfo(info->isolate())); |
188 __ CallRuntime(Runtime::kNewScriptContext); | 188 __ CallRuntime(Runtime::kNewScriptContext); |
189 PrepareForBailoutForId(BailoutId::ScriptContext(), | 189 PrepareForBailoutForId(BailoutId::ScriptContext(), |
190 BailoutState::TOS_REGISTER); | 190 BailoutState::TOS_REGISTER); |
191 // The new target value is not used, clobbering is safe. | 191 // The new target value is not used, clobbering is safe. |
192 DCHECK_NULL(info->scope()->new_target_var()); | 192 DCHECK_NULL(info->scope()->new_target_var()); |
193 } else { | 193 } else { |
194 if (info->scope()->new_target_var() != nullptr) { | 194 if (info->scope()->new_target_var() != nullptr) { |
195 __ push(a3); // Preserve new target. | 195 __ push(a3); // Preserve new target. |
196 } | 196 } |
197 if (slots <= FastNewContextStub::kMaximumSlots) { | 197 if (slots <= FastNewFunctionContextStub::kMaximumSlots) { |
198 FastNewContextStub stub(isolate(), slots); | 198 FastNewFunctionContextStub stub(isolate(), slots); |
199 __ CallStub(&stub); | 199 __ CallStub(&stub); |
200 // Result of FastNewContextStub is always in new space. | 200 // Result of FastNewFunctionContextStub is always in new space. |
201 need_write_barrier = false; | 201 need_write_barrier = false; |
202 } else { | 202 } else { |
203 __ push(a1); | 203 __ push(a1); |
204 __ CallRuntime(Runtime::kNewFunctionContext); | 204 __ CallRuntime(Runtime::kNewFunctionContext); |
205 } | 205 } |
206 if (info->scope()->new_target_var() != nullptr) { | 206 if (info->scope()->new_target_var() != nullptr) { |
207 __ pop(a3); // Restore new target. | 207 __ pop(a3); // Restore new target. |
208 } | 208 } |
209 } | 209 } |
210 function_in_register_a1 = false; | 210 function_in_register_a1 = false; |
(...skipping 3569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3780 reinterpret_cast<uint32_t>( | 3780 reinterpret_cast<uint32_t>( |
3781 isolate->builtins()->OnStackReplacement()->entry())); | 3781 isolate->builtins()->OnStackReplacement()->entry())); |
3782 return ON_STACK_REPLACEMENT; | 3782 return ON_STACK_REPLACEMENT; |
3783 } | 3783 } |
3784 | 3784 |
3785 | 3785 |
3786 } // namespace internal | 3786 } // namespace internal |
3787 } // namespace v8 | 3787 } // namespace v8 |
3788 | 3788 |
3789 #endif // V8_TARGET_ARCH_MIPS | 3789 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |