| 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 5379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5390 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); | 5390 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); |
| 5391 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); | 5391 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); |
| 5392 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); | 5392 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |
| 5393 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { | 5393 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { |
| 5394 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); | 5394 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); |
| 5395 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); | 5395 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); |
| 5396 } | 5396 } |
| 5397 | 5397 |
| 5398 if (instr->size()->IsConstantOperand()) { | 5398 if (instr->size()->IsConstantOperand()) { |
| 5399 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5399 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
| 5400 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); | 5400 if (size <= Page::kMaxRegularHeapObjectSize) { |
| 5401 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); |
| 5402 } else { |
| 5403 __ jmp(deferred->entry()); |
| 5404 } |
| 5401 } else { | 5405 } else { |
| 5402 Register size = ToRegister(instr->size()); | 5406 Register size = ToRegister(instr->size()); |
| 5403 __ Allocate(size, | 5407 __ Allocate(size, |
| 5404 result, | 5408 result, |
| 5405 scratch, | 5409 scratch, |
| 5406 scratch2, | 5410 scratch2, |
| 5407 deferred->entry(), | 5411 deferred->entry(), |
| 5408 flags); | 5412 flags); |
| 5409 } | 5413 } |
| 5410 | 5414 |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5891 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5895 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5892 __ ldr(result, FieldMemOperand(scratch, | 5896 __ ldr(result, FieldMemOperand(scratch, |
| 5893 FixedArray::kHeaderSize - kPointerSize)); | 5897 FixedArray::kHeaderSize - kPointerSize)); |
| 5894 __ bind(&done); | 5898 __ bind(&done); |
| 5895 } | 5899 } |
| 5896 | 5900 |
| 5897 | 5901 |
| 5898 #undef __ | 5902 #undef __ |
| 5899 | 5903 |
| 5900 } } // namespace v8::internal | 5904 } } // namespace v8::internal |
| OLD | NEW |