Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(854)

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.cc

Issue 2760953002: [builtins] Move more files into v8_builtins_generators source set (Closed)
Patch Set: rebased Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 __ Push(info->scope()->scope_info()); 203 __ Push(info->scope()->scope_info());
204 __ CallRuntime(Runtime::kNewScriptContext); 204 __ CallRuntime(Runtime::kNewScriptContext);
205 PrepareForBailoutForId(BailoutId::ScriptContext(), 205 PrepareForBailoutForId(BailoutId::ScriptContext(),
206 BailoutState::TOS_REGISTER); 206 BailoutState::TOS_REGISTER);
207 // The new target value is not used, clobbering is safe. 207 // The new target value is not used, clobbering is safe.
208 DCHECK_NULL(info->scope()->new_target_var()); 208 DCHECK_NULL(info->scope()->new_target_var());
209 } else { 209 } else {
210 if (info->scope()->new_target_var() != nullptr) { 210 if (info->scope()->new_target_var() != nullptr) {
211 __ push(r5); // Preserve new target. 211 __ push(r5); // Preserve new target.
212 } 212 }
213 if (slots <= 213 if (slots <= ConstructorBuiltins::MaximumFunctionContextSlots()) {
214 ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) {
215 Callable callable = CodeFactory::FastNewFunctionContext( 214 Callable callable = CodeFactory::FastNewFunctionContext(
216 isolate(), info->scope()->scope_type()); 215 isolate(), info->scope()->scope_type());
217 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), 216 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(),
218 Operand(slots)); 217 Operand(slots));
219 __ Call(callable.code(), RelocInfo::CODE_TARGET); 218 __ Call(callable.code(), RelocInfo::CODE_TARGET);
220 // Result of the FastNewFunctionContext builtin is always in new space. 219 // Result of the FastNewFunctionContext builtin is always in new space.
221 need_write_barrier = false; 220 need_write_barrier = false;
222 } else { 221 } else {
223 __ push(r3); 222 __ push(r3);
224 __ Push(Smi::FromInt(info->scope()->scope_type())); 223 __ Push(Smi::FromInt(info->scope()->scope_type()));
(...skipping 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2724 USE(kOSRBranchInstruction); 2723 USE(kOSRBranchInstruction);
2725 DCHECK(kOSRBranchInstruction == br_instr); 2724 DCHECK(kOSRBranchInstruction == br_instr);
2726 2725
2727 DCHECK(interrupt_address == 2726 DCHECK(interrupt_address ==
2728 isolate->builtins()->OnStackReplacement()->entry()); 2727 isolate->builtins()->OnStackReplacement()->entry());
2729 return ON_STACK_REPLACEMENT; 2728 return ON_STACK_REPLACEMENT;
2730 } 2729 }
2731 } // namespace internal 2730 } // namespace internal
2732 } // namespace v8 2731 } // namespace v8
2733 #endif // V8_TARGET_ARCH_S390 2732 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698