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