| 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 5244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5255 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); | 5255 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); |
| 5256 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); | 5256 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); |
| 5257 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); | 5257 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |
| 5258 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { | 5258 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { |
| 5259 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); | 5259 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); |
| 5260 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); | 5260 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); |
| 5261 } | 5261 } |
| 5262 | 5262 |
| 5263 if (instr->size()->IsConstantOperand()) { | 5263 if (instr->size()->IsConstantOperand()) { |
| 5264 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 5264 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
| 5265 if (size <= Page::kMaxRegularHeapObjectSize) { | 5265 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); |
| 5266 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); | |
| 5267 } else { | |
| 5268 __ jmp(deferred->entry()); | |
| 5269 } | |
| 5270 } else { | 5266 } else { |
| 5271 Register size = ToRegister(instr->size()); | 5267 Register size = ToRegister(instr->size()); |
| 5272 __ Allocate(size, | 5268 __ Allocate(size, |
| 5273 result, | 5269 result, |
| 5274 scratch, | 5270 scratch, |
| 5275 scratch2, | 5271 scratch2, |
| 5276 deferred->entry(), | 5272 deferred->entry(), |
| 5277 flags); | 5273 flags); |
| 5278 } | 5274 } |
| 5279 | 5275 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5756 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5752 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5757 __ ldr(result, FieldMemOperand(scratch, | 5753 __ ldr(result, FieldMemOperand(scratch, |
| 5758 FixedArray::kHeaderSize - kPointerSize)); | 5754 FixedArray::kHeaderSize - kPointerSize)); |
| 5759 __ bind(&done); | 5755 __ bind(&done); |
| 5760 } | 5756 } |
| 5761 | 5757 |
| 5762 | 5758 |
| 5763 #undef __ | 5759 #undef __ |
| 5764 | 5760 |
| 5765 } } // namespace v8::internal | 5761 } } // namespace v8::internal |
| OLD | NEW |