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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.cc

Issue 1929673002: S390: Get rid of AllocationFlags::TAG_OBJECT (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | src/full-codegen/s390/full-codegen-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 5237 matching lines...) Expand 10 before | Expand all | Expand 10 after
5248 LAllocate* instr_; 5248 LAllocate* instr_;
5249 }; 5249 };
5250 5250
5251 DeferredAllocate* deferred = new (zone()) DeferredAllocate(this, instr); 5251 DeferredAllocate* deferred = new (zone()) DeferredAllocate(this, instr);
5252 5252
5253 Register result = ToRegister(instr->result()); 5253 Register result = ToRegister(instr->result());
5254 Register scratch = ToRegister(instr->temp1()); 5254 Register scratch = ToRegister(instr->temp1());
5255 Register scratch2 = ToRegister(instr->temp2()); 5255 Register scratch2 = ToRegister(instr->temp2());
5256 5256
5257 // Allocate memory for the object. 5257 // Allocate memory for the object.
5258 AllocationFlags flags = TAG_OBJECT; 5258 AllocationFlags flags = NO_ALLOCATION_FLAGS;
5259 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 5259 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
5260 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5260 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5261 } 5261 }
5262 if (instr->hydrogen()->IsOldSpaceAllocation()) { 5262 if (instr->hydrogen()->IsOldSpaceAllocation()) {
5263 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); 5263 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
5264 flags = static_cast<AllocationFlags>(flags | PRETENURE); 5264 flags = static_cast<AllocationFlags>(flags | PRETENURE);
5265 } 5265 }
5266 5266
5267 if (instr->size()->IsConstantOperand()) { 5267 if (instr->size()->IsConstantOperand()) {
5268 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5268 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
5670 __ LoadP(result, 5670 __ LoadP(result,
5671 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5671 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5672 __ bind(deferred->exit()); 5672 __ bind(deferred->exit());
5673 __ bind(&done); 5673 __ bind(&done);
5674 } 5674 }
5675 5675
5676 #undef __ 5676 #undef __
5677 5677
5678 } // namespace internal 5678 } // namespace internal
5679 } // namespace v8 5679 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698