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

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

Issue 1917353002: PPC: Get rid of AllocationFlags::TAG_OBJECT (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removed subi instruction as subsequent addi handled kHeapObjectTag 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/ppc/full-codegen-ppc.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 // 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 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 5342 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 LAllocate* instr_; 5353 LAllocate* instr_;
5354 }; 5354 };
5355 5355
5356 DeferredAllocate* deferred = new (zone()) DeferredAllocate(this, instr); 5356 DeferredAllocate* deferred = new (zone()) DeferredAllocate(this, instr);
5357 5357
5358 Register result = ToRegister(instr->result()); 5358 Register result = ToRegister(instr->result());
5359 Register scratch = ToRegister(instr->temp1()); 5359 Register scratch = ToRegister(instr->temp1());
5360 Register scratch2 = ToRegister(instr->temp2()); 5360 Register scratch2 = ToRegister(instr->temp2());
5361 5361
5362 // Allocate memory for the object. 5362 // Allocate memory for the object.
5363 AllocationFlags flags = TAG_OBJECT; 5363 AllocationFlags flags = NO_ALLOCATION_FLAGS;
5364 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 5364 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
5365 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5365 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5366 } 5366 }
5367 if (instr->hydrogen()->IsOldSpaceAllocation()) { 5367 if (instr->hydrogen()->IsOldSpaceAllocation()) {
5368 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); 5368 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
5369 flags = static_cast<AllocationFlags>(flags | PRETENURE); 5369 flags = static_cast<AllocationFlags>(flags | PRETENURE);
5370 } 5370 }
5371 5371
5372 if (instr->size()->IsConstantOperand()) { 5372 if (instr->size()->IsConstantOperand()) {
5373 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5373 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
5786 __ LoadP(result, 5786 __ LoadP(result,
5787 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5787 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5788 __ bind(deferred->exit()); 5788 __ bind(deferred->exit());
5789 __ bind(&done); 5789 __ bind(&done);
5790 } 5790 }
5791 5791
5792 #undef __ 5792 #undef __
5793 5793
5794 } // namespace internal 5794 } // namespace internal
5795 } // namespace v8 5795 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698