| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/ast/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/builtins/builtins-constructor.h" | 9 #include "src/builtins/builtins-constructor.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 __ Push(info->scope()->scope_info()); | 199 __ Push(info->scope()->scope_info()); |
| 200 __ CallRuntime(Runtime::kNewScriptContext); | 200 __ CallRuntime(Runtime::kNewScriptContext); |
| 201 PrepareForBailoutForId(BailoutId::ScriptContext(), | 201 PrepareForBailoutForId(BailoutId::ScriptContext(), |
| 202 BailoutState::TOS_REGISTER); | 202 BailoutState::TOS_REGISTER); |
| 203 // The new target value is not used, clobbering is safe. | 203 // The new target value is not used, clobbering is safe. |
| 204 DCHECK_NULL(info->scope()->new_target_var()); | 204 DCHECK_NULL(info->scope()->new_target_var()); |
| 205 } else { | 205 } else { |
| 206 if (info->scope()->new_target_var() != nullptr) { | 206 if (info->scope()->new_target_var() != nullptr) { |
| 207 __ push(r6); // Preserve new target. | 207 __ push(r6); // Preserve new target. |
| 208 } | 208 } |
| 209 if (slots <= | 209 if (slots <= ConstructorBuiltins::MaximumFunctionContextSlots()) { |
| 210 ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) { | |
| 211 Callable callable = CodeFactory::FastNewFunctionContext( | 210 Callable callable = CodeFactory::FastNewFunctionContext( |
| 212 isolate(), info->scope()->scope_type()); | 211 isolate(), info->scope()->scope_type()); |
| 213 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), | 212 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), |
| 214 Operand(slots)); | 213 Operand(slots)); |
| 215 __ Call(callable.code(), RelocInfo::CODE_TARGET); | 214 __ Call(callable.code(), RelocInfo::CODE_TARGET); |
| 216 // Result of the FastNewFunctionContext builtin is always in new space. | 215 // Result of the FastNewFunctionContext builtin is always in new space. |
| 217 need_write_barrier = false; | 216 need_write_barrier = false; |
| 218 } else { | 217 } else { |
| 219 __ push(r4); | 218 __ push(r4); |
| 220 __ Push(Smi::FromInt(info->scope()->scope_type())); | 219 __ Push(Smi::FromInt(info->scope()->scope_type())); |
| (...skipping 2554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2775 | 2774 |
| 2776 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 2775 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
| 2777 | 2776 |
| 2778 DCHECK(interrupt_address == | 2777 DCHECK(interrupt_address == |
| 2779 isolate->builtins()->OnStackReplacement()->entry()); | 2778 isolate->builtins()->OnStackReplacement()->entry()); |
| 2780 return ON_STACK_REPLACEMENT; | 2779 return ON_STACK_REPLACEMENT; |
| 2781 } | 2780 } |
| 2782 } // namespace internal | 2781 } // namespace internal |
| 2783 } // namespace v8 | 2782 } // namespace v8 |
| 2784 #endif // V8_TARGET_ARCH_PPC | 2783 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |