| 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 5548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5559 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); | 5559 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
| 5560 } | 5560 } |
| 5561 if (instr->size()->IsConstantOperand()) { | 5561 if (instr->size()->IsConstantOperand()) { |
| 5562 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5562 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
| 5563 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { | 5563 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { |
| 5564 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); | 5564 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |
| 5565 } | 5565 } |
| 5566 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); | 5566 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); |
| 5567 } else { | 5567 } else { |
| 5568 Register size = ToRegister(instr->size()); | 5568 Register size = ToRegister(instr->size()); |
| 5569 __ AllocateInNewSpace(size, result, temp, no_reg, deferred->entry(), flags); | 5569 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); |
| 5570 } | 5570 } |
| 5571 | 5571 |
| 5572 __ bind(deferred->exit()); | 5572 __ bind(deferred->exit()); |
| 5573 } | 5573 } |
| 5574 | 5574 |
| 5575 | 5575 |
| 5576 void LCodeGen::DoDeferredAllocate(LAllocate* instr) { | 5576 void LCodeGen::DoDeferredAllocate(LAllocate* instr) { |
| 5577 Register size = ToRegister(instr->size()); | 5577 Register size = ToRegister(instr->size()); |
| 5578 Register result = ToRegister(instr->result()); | 5578 Register result = ToRegister(instr->result()); |
| 5579 | 5579 |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6294 FixedArray::kHeaderSize - kPointerSize)); | 6294 FixedArray::kHeaderSize - kPointerSize)); |
| 6295 __ bind(&done); | 6295 __ bind(&done); |
| 6296 } | 6296 } |
| 6297 | 6297 |
| 6298 | 6298 |
| 6299 #undef __ | 6299 #undef __ |
| 6300 | 6300 |
| 6301 } } // namespace v8::internal | 6301 } } // namespace v8::internal |
| 6302 | 6302 |
| 6303 #endif // V8_TARGET_ARCH_IA32 | 6303 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |