| 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 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1766 Handle<Object> handle = instr->value(); | 1766 Handle<Object> handle = instr->value(); |
| 1767 AllowDeferredHandleDereference smi_check; | 1767 AllowDeferredHandleDereference smi_check; |
| 1768 if (handle->IsHeapObject()) { | 1768 if (handle->IsHeapObject()) { |
| 1769 __ LoadHeapObject(reg, Handle<HeapObject>::cast(handle)); | 1769 __ LoadHeapObject(reg, Handle<HeapObject>::cast(handle)); |
| 1770 } else { | 1770 } else { |
| 1771 __ Set(reg, Immediate(handle)); | 1771 __ Set(reg, Immediate(handle)); |
| 1772 } | 1772 } |
| 1773 } | 1773 } |
| 1774 | 1774 |
| 1775 | 1775 |
| 1776 void LCodeGen::DoFixedArrayBaseLength( | |
| 1777 LFixedArrayBaseLength* instr) { | |
| 1778 Register result = ToRegister(instr->result()); | |
| 1779 Register array = ToRegister(instr->value()); | |
| 1780 __ mov(result, FieldOperand(array, FixedArrayBase::kLengthOffset)); | |
| 1781 } | |
| 1782 | |
| 1783 | |
| 1784 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1776 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
| 1785 Register result = ToRegister(instr->result()); | 1777 Register result = ToRegister(instr->result()); |
| 1786 Register map = ToRegister(instr->value()); | 1778 Register map = ToRegister(instr->value()); |
| 1787 __ EnumLength(result, map); | 1779 __ EnumLength(result, map); |
| 1788 } | 1780 } |
| 1789 | 1781 |
| 1790 | 1782 |
| 1791 void LCodeGen::DoElementsKind(LElementsKind* instr) { | 1783 void LCodeGen::DoElementsKind(LElementsKind* instr) { |
| 1792 Register result = ToRegister(instr->result()); | 1784 Register result = ToRegister(instr->result()); |
| 1793 Register input = ToRegister(instr->value()); | 1785 Register input = ToRegister(instr->value()); |
| (...skipping 4757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6551 FixedArray::kHeaderSize - kPointerSize)); | 6543 FixedArray::kHeaderSize - kPointerSize)); |
| 6552 __ bind(&done); | 6544 __ bind(&done); |
| 6553 } | 6545 } |
| 6554 | 6546 |
| 6555 | 6547 |
| 6556 #undef __ | 6548 #undef __ |
| 6557 | 6549 |
| 6558 } } // namespace v8::internal | 6550 } } // namespace v8::internal |
| 6559 | 6551 |
| 6560 #endif // V8_TARGET_ARCH_IA32 | 6552 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |