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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.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
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/full-codegen/arm/full-codegen-arm.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 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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 5385 matching lines...) Expand 10 before | Expand all | Expand 10 after
5396 LAllocate* instr_; 5396 LAllocate* instr_;
5397 }; 5397 };
5398 5398
5399 DeferredAllocate* deferred = 5399 DeferredAllocate* deferred =
5400 new(zone()) DeferredAllocate(this, instr, x87_stack_); 5400 new(zone()) DeferredAllocate(this, instr, x87_stack_);
5401 5401
5402 Register result = ToRegister(instr->result()); 5402 Register result = ToRegister(instr->result());
5403 Register temp = ToRegister(instr->temp()); 5403 Register temp = ToRegister(instr->temp());
5404 5404
5405 // Allocate memory for the object. 5405 // Allocate memory for the object.
5406 AllocationFlags flags = TAG_OBJECT; 5406 AllocationFlags flags = NO_ALLOCATION_FLAGS;
5407 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 5407 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
5408 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5408 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5409 } 5409 }
5410 if (instr->hydrogen()->IsOldSpaceAllocation()) { 5410 if (instr->hydrogen()->IsOldSpaceAllocation()) {
5411 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); 5411 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
5412 flags = static_cast<AllocationFlags>(flags | PRETENURE); 5412 flags = static_cast<AllocationFlags>(flags | PRETENURE);
5413 } 5413 }
5414 5414
5415 if (instr->size()->IsConstantOperand()) { 5415 if (instr->size()->IsConstantOperand()) {
5416 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5416 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
5833 __ bind(deferred->exit()); 5833 __ bind(deferred->exit());
5834 __ bind(&done); 5834 __ bind(&done);
5835 } 5835 }
5836 5836
5837 #undef __ 5837 #undef __
5838 5838
5839 } // namespace internal 5839 } // namespace internal
5840 } // namespace v8 5840 } // namespace v8
5841 5841
5842 #endif // V8_TARGET_ARCH_X87 5842 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698