| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 __ Push(info->scope()->scope_info()); | 205 __ Push(info->scope()->scope_info()); |
| 206 __ CallRuntime(Runtime::kNewScriptContext); | 206 __ CallRuntime(Runtime::kNewScriptContext); |
| 207 PrepareForBailoutForId(BailoutId::ScriptContext(), | 207 PrepareForBailoutForId(BailoutId::ScriptContext(), |
| 208 BailoutState::TOS_REGISTER); | 208 BailoutState::TOS_REGISTER); |
| 209 // The new target value is not used, clobbering is safe. | 209 // The new target value is not used, clobbering is safe. |
| 210 DCHECK_NULL(info->scope()->new_target_var()); | 210 DCHECK_NULL(info->scope()->new_target_var()); |
| 211 } else { | 211 } else { |
| 212 if (info->scope()->new_target_var() != nullptr) { | 212 if (info->scope()->new_target_var() != nullptr) { |
| 213 __ push(r5); // Preserve new target. | 213 __ push(r5); // Preserve new target. |
| 214 } | 214 } |
| 215 FastNewFunctionContextStub stub(isolate()); | 215 FastNewFunctionContextStub stub(isolate(), |
| 216 info->scope()->is_eval_scope()); |
| 216 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); | 217 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); |
| 217 __ CallStub(&stub); | 218 __ CallStub(&stub); |
| 218 // Result of FastNewFunctionContextStub is always in new space. | 219 // Result of FastNewFunctionContextStub is always in new space. |
| 219 need_write_barrier = false; | 220 need_write_barrier = false; |
| 220 if (info->scope()->new_target_var() != nullptr) { | 221 if (info->scope()->new_target_var() != nullptr) { |
| 221 __ pop(r5); // Preserve new target. | 222 __ pop(r5); // Preserve new target. |
| 222 } | 223 } |
| 223 } | 224 } |
| 224 function_in_register_r3 = false; | 225 function_in_register_r3 = false; |
| 225 // Context is returned in r2. It replaces the context passed to us. | 226 // Context is returned in r2. It replaces the context passed to us. |
| (...skipping 3313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3539 DCHECK(kOSRBranchInstruction == br_instr); | 3540 DCHECK(kOSRBranchInstruction == br_instr); |
| 3540 | 3541 |
| 3541 DCHECK(interrupt_address == | 3542 DCHECK(interrupt_address == |
| 3542 isolate->builtins()->OnStackReplacement()->entry()); | 3543 isolate->builtins()->OnStackReplacement()->entry()); |
| 3543 return ON_STACK_REPLACEMENT; | 3544 return ON_STACK_REPLACEMENT; |
| 3544 } | 3545 } |
| 3545 | 3546 |
| 3546 } // namespace internal | 3547 } // namespace internal |
| 3547 } // namespace v8 | 3548 } // namespace v8 |
| 3548 #endif // V8_TARGET_ARCH_S390 | 3549 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |