OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5105 new(zone()) DeferredAllocate(this, instr); | 5105 new(zone()) DeferredAllocate(this, instr); |
5106 | 5106 |
5107 Register result = ToRegister(instr->result()); | 5107 Register result = ToRegister(instr->result()); |
5108 Register temp = ToRegister(instr->temp()); | 5108 Register temp = ToRegister(instr->temp()); |
5109 | 5109 |
5110 // Allocate memory for the object. | 5110 // Allocate memory for the object. |
5111 AllocationFlags flags = TAG_OBJECT; | 5111 AllocationFlags flags = TAG_OBJECT; |
5112 if (instr->hydrogen()->MustAllocateDoubleAligned()) { | 5112 if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
5113 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); | 5113 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
5114 } | 5114 } |
| 5115 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { |
| 5116 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |
| 5117 } |
5115 if (instr->size()->IsConstantOperand()) { | 5118 if (instr->size()->IsConstantOperand()) { |
5116 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5119 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
5117 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { | |
5118 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); | |
5119 } | |
5120 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); | 5120 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); |
5121 } else { | 5121 } else { |
5122 Register size = ToRegister(instr->size()); | 5122 Register size = ToRegister(instr->size()); |
5123 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); | 5123 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); |
5124 } | 5124 } |
5125 | 5125 |
5126 __ bind(deferred->exit()); | 5126 __ bind(deferred->exit()); |
5127 } | 5127 } |
5128 | 5128 |
5129 | 5129 |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5845 FixedArray::kHeaderSize - kPointerSize)); | 5845 FixedArray::kHeaderSize - kPointerSize)); |
5846 __ bind(&done); | 5846 __ bind(&done); |
5847 } | 5847 } |
5848 | 5848 |
5849 | 5849 |
5850 #undef __ | 5850 #undef __ |
5851 | 5851 |
5852 } } // namespace v8::internal | 5852 } } // namespace v8::internal |
5853 | 5853 |
5854 #endif // V8_TARGET_ARCH_X64 | 5854 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |