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

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

Issue 1922553002: Get rid of AllocationFlags::TAG_OBJECT (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove TAG_OBJECT from AllocationFlags Created 4 years, 8 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 5143 matching lines...) Expand 10 before | Expand all | Expand 10 after
5154 LAllocate* instr_; 5154 LAllocate* instr_;
5155 }; 5155 };
5156 5156
5157 DeferredAllocate* deferred = 5157 DeferredAllocate* deferred =
5158 new(zone()) DeferredAllocate(this, instr); 5158 new(zone()) DeferredAllocate(this, instr);
5159 5159
5160 Register result = ToRegister(instr->result()); 5160 Register result = ToRegister(instr->result());
5161 Register temp = ToRegister(instr->temp()); 5161 Register temp = ToRegister(instr->temp());
5162 5162
5163 // Allocate memory for the object. 5163 // Allocate memory for the object.
5164 AllocationFlags flags = TAG_OBJECT; 5164 AllocationFlags flags = NO_ALLOCATION_FLAGS;
5165 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 5165 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
5166 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5166 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5167 } 5167 }
5168 if (instr->hydrogen()->IsOldSpaceAllocation()) { 5168 if (instr->hydrogen()->IsOldSpaceAllocation()) {
5169 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); 5169 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
5170 flags = static_cast<AllocationFlags>(flags | PRETENURE); 5170 flags = static_cast<AllocationFlags>(flags | PRETENURE);
5171 } 5171 }
5172 5172
5173 if (instr->size()->IsConstantOperand()) { 5173 if (instr->size()->IsConstantOperand()) {
5174 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5174 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
5592 __ bind(deferred->exit()); 5592 __ bind(deferred->exit());
5593 __ bind(&done); 5593 __ bind(&done);
5594 } 5594 }
5595 5595
5596 #undef __ 5596 #undef __
5597 5597
5598 } // namespace internal 5598 } // namespace internal
5599 } // namespace v8 5599 } // namespace v8
5600 5600
5601 #endif // V8_TARGET_ARCH_X64 5601 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698