| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4854 private: | 4854 private: |
| 4855 LAllocate* instr_; | 4855 LAllocate* instr_; |
| 4856 }; | 4856 }; |
| 4857 | 4857 |
| 4858 DeferredAllocate* deferred = new(zone()) DeferredAllocate(this, instr); | 4858 DeferredAllocate* deferred = new(zone()) DeferredAllocate(this, instr); |
| 4859 | 4859 |
| 4860 Register result = ToRegister(instr->result()); | 4860 Register result = ToRegister(instr->result()); |
| 4861 Register temp = ToRegister(instr->temp()); | 4861 Register temp = ToRegister(instr->temp()); |
| 4862 | 4862 |
| 4863 // Allocate memory for the object. | 4863 // Allocate memory for the object. |
| 4864 AllocationFlags flags = TAG_OBJECT; | 4864 AllocationFlags flags = NO_ALLOCATION_FLAGS; |
| 4865 if (instr->hydrogen()->MustAllocateDoubleAligned()) { | 4865 if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
| 4866 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); | 4866 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
| 4867 } | 4867 } |
| 4868 if (instr->hydrogen()->IsOldSpaceAllocation()) { | 4868 if (instr->hydrogen()->IsOldSpaceAllocation()) { |
| 4869 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); | 4869 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); |
| 4870 flags = static_cast<AllocationFlags>(flags | PRETENURE); | 4870 flags = static_cast<AllocationFlags>(flags | PRETENURE); |
| 4871 } | 4871 } |
| 4872 | 4872 |
| 4873 if (instr->size()->IsConstantOperand()) { | 4873 if (instr->size()->IsConstantOperand()) { |
| 4874 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 4874 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5288 __ bind(deferred->exit()); | 5288 __ bind(deferred->exit()); |
| 5289 __ bind(&done); | 5289 __ bind(&done); |
| 5290 } | 5290 } |
| 5291 | 5291 |
| 5292 #undef __ | 5292 #undef __ |
| 5293 | 5293 |
| 5294 } // namespace internal | 5294 } // namespace internal |
| 5295 } // namespace v8 | 5295 } // namespace v8 |
| 5296 | 5296 |
| 5297 #endif // V8_TARGET_ARCH_IA32 | 5297 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |