OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // | 2 // |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" | 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" |
7 | 7 |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 5237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5248 LAllocate* instr_; | 5248 LAllocate* instr_; |
5249 }; | 5249 }; |
5250 | 5250 |
5251 DeferredAllocate* deferred = new (zone()) DeferredAllocate(this, instr); | 5251 DeferredAllocate* deferred = new (zone()) DeferredAllocate(this, instr); |
5252 | 5252 |
5253 Register result = ToRegister(instr->result()); | 5253 Register result = ToRegister(instr->result()); |
5254 Register scratch = ToRegister(instr->temp1()); | 5254 Register scratch = ToRegister(instr->temp1()); |
5255 Register scratch2 = ToRegister(instr->temp2()); | 5255 Register scratch2 = ToRegister(instr->temp2()); |
5256 | 5256 |
5257 // Allocate memory for the object. | 5257 // Allocate memory for the object. |
5258 AllocationFlags flags = TAG_OBJECT; | 5258 AllocationFlags flags = NO_ALLOCATION_FLAGS; |
5259 if (instr->hydrogen()->MustAllocateDoubleAligned()) { | 5259 if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
5260 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); | 5260 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
5261 } | 5261 } |
5262 if (instr->hydrogen()->IsOldSpaceAllocation()) { | 5262 if (instr->hydrogen()->IsOldSpaceAllocation()) { |
5263 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); | 5263 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); |
5264 flags = static_cast<AllocationFlags>(flags | PRETENURE); | 5264 flags = static_cast<AllocationFlags>(flags | PRETENURE); |
5265 } | 5265 } |
5266 | 5266 |
5267 if (instr->size()->IsConstantOperand()) { | 5267 if (instr->size()->IsConstantOperand()) { |
5268 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5268 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5670 __ LoadP(result, | 5670 __ LoadP(result, |
5671 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5671 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5672 __ bind(deferred->exit()); | 5672 __ bind(deferred->exit()); |
5673 __ bind(&done); | 5673 __ bind(&done); |
5674 } | 5674 } |
5675 | 5675 |
5676 #undef __ | 5676 #undef __ |
5677 | 5677 |
5678 } // namespace internal | 5678 } // namespace internal |
5679 } // namespace v8 | 5679 } // namespace v8 |
OLD | NEW |