| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 __ Push(info->scope()->scope_info()); | 201 __ Push(info->scope()->scope_info()); |
| 202 __ CallRuntime(Runtime::kNewScriptContext); | 202 __ CallRuntime(Runtime::kNewScriptContext); |
| 203 PrepareForBailoutForId(BailoutId::ScriptContext(), | 203 PrepareForBailoutForId(BailoutId::ScriptContext(), |
| 204 BailoutState::TOS_REGISTER); | 204 BailoutState::TOS_REGISTER); |
| 205 // The new target value is not used, clobbering is safe. | 205 // The new target value is not used, clobbering is safe. |
| 206 DCHECK_NULL(info->scope()->new_target_var()); | 206 DCHECK_NULL(info->scope()->new_target_var()); |
| 207 } else { | 207 } else { |
| 208 if (info->scope()->new_target_var() != nullptr) { | 208 if (info->scope()->new_target_var() != nullptr) { |
| 209 __ push(a3); // Preserve new target. | 209 __ push(a3); // Preserve new target. |
| 210 } | 210 } |
| 211 if (slots <= | 211 if (slots <= ConstructorBuiltins::MaximumFunctionContextSlots()) { |
| 212 ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) { | |
| 213 Callable callable = CodeFactory::FastNewFunctionContext( | 212 Callable callable = CodeFactory::FastNewFunctionContext( |
| 214 isolate(), info->scope()->scope_type()); | 213 isolate(), info->scope()->scope_type()); |
| 215 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), | 214 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), |
| 216 Operand(slots)); | 215 Operand(slots)); |
| 217 __ Call(callable.code(), RelocInfo::CODE_TARGET); | 216 __ Call(callable.code(), RelocInfo::CODE_TARGET); |
| 218 // Result of the FastNewFunctionContext builtin is always in new space. | 217 // Result of the FastNewFunctionContext builtin is always in new space. |
| 219 need_write_barrier = false; | 218 need_write_barrier = false; |
| 220 } else { | 219 } else { |
| 221 __ push(a1); | 220 __ push(a1); |
| 222 __ Push(Smi::FromInt(info->scope()->scope_type())); | 221 __ Push(Smi::FromInt(info->scope()->scope_type())); |
| (...skipping 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2809 reinterpret_cast<uint64_t>( | 2808 reinterpret_cast<uint64_t>( |
| 2810 isolate->builtins()->OnStackReplacement()->entry())); | 2809 isolate->builtins()->OnStackReplacement()->entry())); |
| 2811 return ON_STACK_REPLACEMENT; | 2810 return ON_STACK_REPLACEMENT; |
| 2812 } | 2811 } |
| 2813 | 2812 |
| 2814 | 2813 |
| 2815 } // namespace internal | 2814 } // namespace internal |
| 2816 } // namespace v8 | 2815 } // namespace v8 |
| 2817 | 2816 |
| 2818 #endif // V8_TARGET_ARCH_MIPS64 | 2817 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |