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 __ 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(r6); // Preserve new target. | 209 __ push(r6); // Preserve new target. |
210 } | 210 } |
211 FastNewFunctionContextStub stub(isolate()); | 211 FastNewFunctionContextStub stub(isolate(), |
| 212 info->scope()->is_eval_scope()); |
212 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); | 213 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); |
213 __ CallStub(&stub); | 214 __ CallStub(&stub); |
214 // Result of FastNewFunctionContextStub is always in new space. | 215 // Result of FastNewFunctionContextStub is always in new space. |
215 need_write_barrier = false; | 216 need_write_barrier = false; |
216 if (info->scope()->new_target_var() != nullptr) { | 217 if (info->scope()->new_target_var() != nullptr) { |
217 __ pop(r6); // Preserve new target. | 218 __ pop(r6); // Preserve new target. |
218 } | 219 } |
219 } | 220 } |
220 function_in_register_r4 = false; | 221 function_in_register_r4 = false; |
221 // Context is returned in r3. It replaces the context passed to us. | 222 // Context is returned in r3. It replaces the context passed to us. |
(...skipping 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3620 | 3621 |
3621 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3622 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
3622 | 3623 |
3623 DCHECK(interrupt_address == | 3624 DCHECK(interrupt_address == |
3624 isolate->builtins()->OnStackReplacement()->entry()); | 3625 isolate->builtins()->OnStackReplacement()->entry()); |
3625 return ON_STACK_REPLACEMENT; | 3626 return ON_STACK_REPLACEMENT; |
3626 } | 3627 } |
3627 } // namespace internal | 3628 } // namespace internal |
3628 } // namespace v8 | 3629 } // namespace v8 |
3629 #endif // V8_TARGET_ARCH_PPC | 3630 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |