| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |