| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5565 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); | 5565 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
| 5566 } | 5566 } |
| 5567 if (instr->size()->IsConstantOperand()) { | 5567 if (instr->size()->IsConstantOperand()) { |
| 5568 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5568 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
| 5569 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { | 5569 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { |
| 5570 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); | 5570 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |
| 5571 } | 5571 } |
| 5572 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); | 5572 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); |
| 5573 } else { | 5573 } else { |
| 5574 Register size = ToRegister(instr->size()); | 5574 Register size = ToRegister(instr->size()); |
| 5575 __ AllocateInNewSpace(size, result, temp, no_reg, deferred->entry(), flags); | 5575 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); |
| 5576 } | 5576 } |
| 5577 | 5577 |
| 5578 __ bind(deferred->exit()); | 5578 __ bind(deferred->exit()); |
| 5579 } | 5579 } |
| 5580 | 5580 |
| 5581 | 5581 |
| 5582 void LCodeGen::DoDeferredAllocate(LAllocate* instr) { | 5582 void LCodeGen::DoDeferredAllocate(LAllocate* instr) { |
| 5583 Register size = ToRegister(instr->size()); | 5583 Register size = ToRegister(instr->size()); |
| 5584 Register result = ToRegister(instr->result()); | 5584 Register result = ToRegister(instr->result()); |
| 5585 | 5585 |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6299 FixedArray::kHeaderSize - kPointerSize)); | 6299 FixedArray::kHeaderSize - kPointerSize)); |
| 6300 __ bind(&done); | 6300 __ bind(&done); |
| 6301 } | 6301 } |
| 6302 | 6302 |
| 6303 | 6303 |
| 6304 #undef __ | 6304 #undef __ |
| 6305 | 6305 |
| 6306 } } // namespace v8::internal | 6306 } } // namespace v8::internal |
| 6307 | 6307 |
| 6308 #endif // V8_TARGET_ARCH_IA32 | 6308 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |