| 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 5827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5838 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); | 5838 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); |
| 5839 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); | 5839 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); |
| 5840 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); | 5840 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |
| 5841 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { | 5841 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { |
| 5842 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); | 5842 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); |
| 5843 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); | 5843 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); |
| 5844 } | 5844 } |
| 5845 | 5845 |
| 5846 if (instr->size()->IsConstantOperand()) { | 5846 if (instr->size()->IsConstantOperand()) { |
| 5847 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5847 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
| 5848 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); | 5848 if (size <= Page::kMaxRegularHeapObjectSize) { |
| 5849 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); |
| 5850 } else { |
| 5851 __ jmp(deferred->entry()); |
| 5852 } |
| 5849 } else { | 5853 } else { |
| 5850 Register size = ToRegister(instr->size()); | 5854 Register size = ToRegister(instr->size()); |
| 5851 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); | 5855 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); |
| 5852 } | 5856 } |
| 5853 | 5857 |
| 5854 __ bind(deferred->exit()); | 5858 __ bind(deferred->exit()); |
| 5855 | 5859 |
| 5856 if (instr->hydrogen()->MustPrefillWithFiller()) { | 5860 if (instr->hydrogen()->MustPrefillWithFiller()) { |
| 5857 if (instr->size()->IsConstantOperand()) { | 5861 if (instr->size()->IsConstantOperand()) { |
| 5858 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5862 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6331 FixedArray::kHeaderSize - kPointerSize)); | 6335 FixedArray::kHeaderSize - kPointerSize)); |
| 6332 __ bind(&done); | 6336 __ bind(&done); |
| 6333 } | 6337 } |
| 6334 | 6338 |
| 6335 | 6339 |
| 6336 #undef __ | 6340 #undef __ |
| 6337 | 6341 |
| 6338 } } // namespace v8::internal | 6342 } } // namespace v8::internal |
| 6339 | 6343 |
| 6340 #endif // V8_TARGET_ARCH_IA32 | 6344 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |