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