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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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, 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after
4854 private: 4854 private:
4855 LAllocate* instr_; 4855 LAllocate* instr_;
4856 }; 4856 };
4857 4857
4858 DeferredAllocate* deferred = new(zone()) DeferredAllocate(this, instr); 4858 DeferredAllocate* deferred = new(zone()) DeferredAllocate(this, instr);
4859 4859
4860 Register result = ToRegister(instr->result()); 4860 Register result = ToRegister(instr->result());
4861 Register temp = ToRegister(instr->temp()); 4861 Register temp = ToRegister(instr->temp());
4862 4862
4863 // Allocate memory for the object. 4863 // Allocate memory for the object.
4864 AllocationFlags flags = TAG_OBJECT; 4864 AllocationFlags flags = NO_ALLOCATION_FLAGS;
4865 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 4865 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
4866 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 4866 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
4867 } 4867 }
4868 if (instr->hydrogen()->IsOldSpaceAllocation()) { 4868 if (instr->hydrogen()->IsOldSpaceAllocation()) {
4869 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); 4869 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
4870 flags = static_cast<AllocationFlags>(flags | PRETENURE); 4870 flags = static_cast<AllocationFlags>(flags | PRETENURE);
4871 } 4871 }
4872 4872
4873 if (instr->size()->IsConstantOperand()) { 4873 if (instr->size()->IsConstantOperand()) {
4874 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 4874 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
5288 __ bind(deferred->exit()); 5288 __ bind(deferred->exit());
5289 __ bind(&done); 5289 __ bind(&done);
5290 } 5290 }
5291 5291
5292 #undef __ 5292 #undef __
5293 5293
5294 } // namespace internal 5294 } // namespace internal
5295 } // namespace v8 5295 } // namespace v8
5296 5296
5297 #endif // V8_TARGET_ARCH_IA32 5297 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698