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/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 <= FastNewFunctionContextStub::MaximumSlots()) { | 209 if (slots <= FastNewFunctionContextStub::MaximumSlots()) { |
210 FastNewFunctionContextStub stub(isolate(), info->scope()->scope_type()); | 210 FastNewFunctionContextStub stub(isolate(), info->scope()->scope_type()); |
211 __ mov(FastNewFContextDescriptor::SlotsRegister(), Operand(slots)); | 211 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), |
| 212 Operand(slots)); |
212 __ CallStub(&stub); | 213 __ CallStub(&stub); |
213 // Result of FastNewFunctionContextStub is always in new space. | 214 // Result of FastNewFunctionContextStub is always in new space. |
214 need_write_barrier = false; | 215 need_write_barrier = false; |
215 } else { | 216 } else { |
216 __ push(r4); | 217 __ push(r4); |
217 __ Push(Smi::FromInt(info->scope()->scope_type())); | 218 __ Push(Smi::FromInt(info->scope()->scope_type())); |
218 __ CallRuntime(Runtime::kNewFunctionContext); | 219 __ CallRuntime(Runtime::kNewFunctionContext); |
219 } | 220 } |
220 if (info->scope()->new_target_var() != nullptr) { | 221 if (info->scope()->new_target_var() != nullptr) { |
221 __ pop(r6); // Preserve new target. | 222 __ pop(r6); // Preserve new target. |
(...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2856 | 2857 |
2857 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 2858 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
2858 | 2859 |
2859 DCHECK(interrupt_address == | 2860 DCHECK(interrupt_address == |
2860 isolate->builtins()->OnStackReplacement()->entry()); | 2861 isolate->builtins()->OnStackReplacement()->entry()); |
2861 return ON_STACK_REPLACEMENT; | 2862 return ON_STACK_REPLACEMENT; |
2862 } | 2863 } |
2863 } // namespace internal | 2864 } // namespace internal |
2864 } // namespace v8 | 2865 } // namespace v8 |
2865 #endif // V8_TARGET_ARCH_PPC | 2866 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |