OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.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 5143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5154 LAllocate* instr_; | 5154 LAllocate* instr_; |
5155 }; | 5155 }; |
5156 | 5156 |
5157 DeferredAllocate* deferred = | 5157 DeferredAllocate* deferred = |
5158 new(zone()) DeferredAllocate(this, instr); | 5158 new(zone()) DeferredAllocate(this, instr); |
5159 | 5159 |
5160 Register result = ToRegister(instr->result()); | 5160 Register result = ToRegister(instr->result()); |
5161 Register temp = ToRegister(instr->temp()); | 5161 Register temp = ToRegister(instr->temp()); |
5162 | 5162 |
5163 // Allocate memory for the object. | 5163 // Allocate memory for the object. |
5164 AllocationFlags flags = TAG_OBJECT; | 5164 AllocationFlags flags = NO_ALLOCATION_FLAGS; |
5165 if (instr->hydrogen()->MustAllocateDoubleAligned()) { | 5165 if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
5166 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); | 5166 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
5167 } | 5167 } |
5168 if (instr->hydrogen()->IsOldSpaceAllocation()) { | 5168 if (instr->hydrogen()->IsOldSpaceAllocation()) { |
5169 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); | 5169 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); |
5170 flags = static_cast<AllocationFlags>(flags | PRETENURE); | 5170 flags = static_cast<AllocationFlags>(flags | PRETENURE); |
5171 } | 5171 } |
5172 | 5172 |
5173 if (instr->size()->IsConstantOperand()) { | 5173 if (instr->size()->IsConstantOperand()) { |
5174 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5174 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5592 __ bind(deferred->exit()); | 5592 __ bind(deferred->exit()); |
5593 __ bind(&done); | 5593 __ bind(&done); |
5594 } | 5594 } |
5595 | 5595 |
5596 #undef __ | 5596 #undef __ |
5597 | 5597 |
5598 } // namespace internal | 5598 } // namespace internal |
5599 } // namespace v8 | 5599 } // namespace v8 |
5600 | 5600 |
5601 #endif // V8_TARGET_ARCH_X64 | 5601 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |