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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 __ Push(info->scope()->GetScopeInfo(info->isolate())); | 188 __ Push(info->scope()->GetScopeInfo(info->isolate())); |
189 __ CallRuntime(Runtime::kNewScriptContext); | 189 __ CallRuntime(Runtime::kNewScriptContext); |
190 PrepareForBailoutForId(BailoutId::ScriptContext(), | 190 PrepareForBailoutForId(BailoutId::ScriptContext(), |
191 BailoutState::TOS_REGISTER); | 191 BailoutState::TOS_REGISTER); |
192 // The new target value is not used, clobbering is safe. | 192 // The new target value is not used, clobbering is safe. |
193 DCHECK_NULL(info->scope()->new_target_var()); | 193 DCHECK_NULL(info->scope()->new_target_var()); |
194 } else { | 194 } else { |
195 if (info->scope()->new_target_var() != nullptr) { | 195 if (info->scope()->new_target_var() != nullptr) { |
196 __ push(r5); // Preserve new target. | 196 __ push(r5); // Preserve new target. |
197 } | 197 } |
198 if (slots <= FastNewContextStub::kMaximumSlots) { | 198 if (slots <= FastNewFunctionContextStub::kMaximumSlots) { |
199 FastNewContextStub stub(isolate(), slots); | 199 FastNewFunctionContextStub stub(isolate(), slots); |
200 __ CallStub(&stub); | 200 __ CallStub(&stub); |
201 // Result of FastNewContextStub is always in new space. | 201 // Result of FastNewFunctionContextStub is always in new space. |
202 need_write_barrier = false; | 202 need_write_barrier = false; |
203 } else { | 203 } else { |
204 __ push(r3); | 204 __ push(r3); |
205 __ CallRuntime(Runtime::kNewFunctionContext); | 205 __ CallRuntime(Runtime::kNewFunctionContext); |
206 } | 206 } |
207 if (info->scope()->new_target_var() != nullptr) { | 207 if (info->scope()->new_target_var() != nullptr) { |
208 __ pop(r5); // Preserve new target. | 208 __ pop(r5); // Preserve new target. |
209 } | 209 } |
210 } | 210 } |
211 function_in_register_r3 = false; | 211 function_in_register_r3 = false; |
(...skipping 3462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3674 DCHECK(kOSRBranchInstruction == br_instr); | 3674 DCHECK(kOSRBranchInstruction == br_instr); |
3675 | 3675 |
3676 DCHECK(interrupt_address == | 3676 DCHECK(interrupt_address == |
3677 isolate->builtins()->OnStackReplacement()->entry()); | 3677 isolate->builtins()->OnStackReplacement()->entry()); |
3678 return ON_STACK_REPLACEMENT; | 3678 return ON_STACK_REPLACEMENT; |
3679 } | 3679 } |
3680 | 3680 |
3681 } // namespace internal | 3681 } // namespace internal |
3682 } // namespace v8 | 3682 } // namespace v8 |
3683 #endif // V8_TARGET_ARCH_S390 | 3683 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |