| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 __ Push(info->scope()->scope_info()); | 203 __ Push(info->scope()->scope_info()); |
| 204 __ CallRuntime(Runtime::kNewScriptContext); | 204 __ CallRuntime(Runtime::kNewScriptContext); |
| 205 PrepareForBailoutForId(BailoutId::ScriptContext(), | 205 PrepareForBailoutForId(BailoutId::ScriptContext(), |
| 206 BailoutState::TOS_REGISTER); | 206 BailoutState::TOS_REGISTER); |
| 207 // The new target value is not used, clobbering is safe. | 207 // The new target value is not used, clobbering is safe. |
| 208 DCHECK_NULL(info->scope()->new_target_var()); | 208 DCHECK_NULL(info->scope()->new_target_var()); |
| 209 } else { | 209 } else { |
| 210 if (info->scope()->new_target_var() != nullptr) { | 210 if (info->scope()->new_target_var() != nullptr) { |
| 211 __ push(a3); // Preserve new target. | 211 __ push(a3); // Preserve new target. |
| 212 } | 212 } |
| 213 FastNewFunctionContextStub stub(isolate()); | 213 FastNewFunctionContextStub stub(isolate(), |
| 214 info->scope()->is_eval_scope()); |
| 214 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); | 215 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); |
| 215 __ CallStub(&stub); | 216 __ CallStub(&stub); |
| 216 // Result of FastNewFunctionContextStub is always in new space. | 217 // Result of FastNewFunctionContextStub is always in new space. |
| 217 need_write_barrier = false; | 218 need_write_barrier = false; |
| 218 if (info->scope()->new_target_var() != nullptr) { | 219 if (info->scope()->new_target_var() != nullptr) { |
| 219 __ pop(a3); // Restore new target. | 220 __ pop(a3); // Restore new target. |
| 220 } | 221 } |
| 221 } | 222 } |
| 222 function_in_register_a1 = false; | 223 function_in_register_a1 = false; |
| 223 // Context is returned in v0. It replaces the context passed to us. | 224 // Context is returned in v0. It replaces the context passed to us. |
| (...skipping 3412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3636 reinterpret_cast<uint32_t>( | 3637 reinterpret_cast<uint32_t>( |
| 3637 isolate->builtins()->OnStackReplacement()->entry())); | 3638 isolate->builtins()->OnStackReplacement()->entry())); |
| 3638 return ON_STACK_REPLACEMENT; | 3639 return ON_STACK_REPLACEMENT; |
| 3639 } | 3640 } |
| 3640 | 3641 |
| 3641 | 3642 |
| 3642 } // namespace internal | 3643 } // namespace internal |
| 3643 } // namespace v8 | 3644 } // namespace v8 |
| 3644 | 3645 |
| 3645 #endif // V8_TARGET_ARCH_MIPS | 3646 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |