| OLD | NEW | 
|     1 // Copyright 2013 the V8 project authors. All rights reserved. |     1 // Copyright 2013 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1482     ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); |  1482     ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); | 
|  1483     ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); |  1483     ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); | 
|  1484     flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |  1484     flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); | 
|  1485   } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { |  1485   } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { | 
|  1486     ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); |  1486     ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); | 
|  1487     flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); |  1487     flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); | 
|  1488   } |  1488   } | 
|  1489  |  1489  | 
|  1490   if (instr->size()->IsConstantOperand()) { |  1490   if (instr->size()->IsConstantOperand()) { | 
|  1491     int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |  1491     int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); | 
|  1492     if (size <= Page::kMaxRegularHeapObjectSize) { |  1492     __ Allocate(size, result, temp1, temp2, deferred->entry(), flags); | 
|  1493       __ Allocate(size, result, temp1, temp2, deferred->entry(), flags); |  | 
|  1494     } else { |  | 
|  1495       __ B(deferred->entry()); |  | 
|  1496     } |  | 
|  1497   } else { |  1493   } else { | 
|  1498     Register size = ToRegister32(instr->size()); |  1494     Register size = ToRegister32(instr->size()); | 
|  1499     __ Sxtw(size.X(), size); |  1495     __ Sxtw(size.X(), size); | 
|  1500     __ Allocate(size.X(), result, temp1, temp2, deferred->entry(), flags); |  1496     __ Allocate(size.X(), result, temp1, temp2, deferred->entry(), flags); | 
|  1501   } |  1497   } | 
|  1502  |  1498  | 
|  1503   __ Bind(deferred->exit()); |  1499   __ Bind(deferred->exit()); | 
|  1504  |  1500  | 
|  1505   if (instr->hydrogen()->MustPrefillWithFiller()) { |  1501   if (instr->hydrogen()->MustPrefillWithFiller()) { | 
|  1506     if (instr->size()->IsConstantOperand()) { |  1502     if (instr->size()->IsConstantOperand()) { | 
| (...skipping 4162 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5669   __ Bind(&out_of_object); |  5665   __ Bind(&out_of_object); | 
|  5670   __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |  5666   __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 
|  5671   // Index is equal to negated out of object property index plus 1. |  5667   // Index is equal to negated out of object property index plus 1. | 
|  5672   __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |  5668   __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 
|  5673   __ Ldr(result, FieldMemOperand(result, |  5669   __ Ldr(result, FieldMemOperand(result, | 
|  5674                                  FixedArray::kHeaderSize - kPointerSize)); |  5670                                  FixedArray::kHeaderSize - kPointerSize)); | 
|  5675   __ Bind(&done); |  5671   __ Bind(&done); | 
|  5676 } |  5672 } | 
|  5677  |  5673  | 
|  5678 } }  // namespace v8::internal |  5674 } }  // namespace v8::internal | 
| OLD | NEW |