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 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1733 Register reg = ToRegister(instr->result()); | 1733 Register reg = ToRegister(instr->result()); |
1734 Handle<Object> handle = instr->value(); | 1734 Handle<Object> handle = instr->value(); |
1735 if (handle->IsHeapObject()) { | 1735 if (handle->IsHeapObject()) { |
1736 __ LoadHeapObject(reg, Handle<HeapObject>::cast(handle)); | 1736 __ LoadHeapObject(reg, Handle<HeapObject>::cast(handle)); |
1737 } else { | 1737 } else { |
1738 __ Set(reg, Immediate(handle)); | 1738 __ Set(reg, Immediate(handle)); |
1739 } | 1739 } |
1740 } | 1740 } |
1741 | 1741 |
1742 | 1742 |
1743 void LCodeGen::DoJSArrayLength(LJSArrayLength* instr) { | |
1744 Register result = ToRegister(instr->result()); | |
1745 Register array = ToRegister(instr->value()); | |
1746 __ mov(result, FieldOperand(array, JSArray::kLengthOffset)); | |
1747 } | |
1748 | |
1749 | |
1750 void LCodeGen::DoFixedArrayBaseLength( | 1743 void LCodeGen::DoFixedArrayBaseLength( |
1751 LFixedArrayBaseLength* instr) { | 1744 LFixedArrayBaseLength* instr) { |
1752 Register result = ToRegister(instr->result()); | 1745 Register result = ToRegister(instr->result()); |
1753 Register array = ToRegister(instr->value()); | 1746 Register array = ToRegister(instr->value()); |
1754 __ mov(result, FieldOperand(array, FixedArrayBase::kLengthOffset)); | 1747 __ mov(result, FieldOperand(array, FixedArrayBase::kLengthOffset)); |
1755 } | 1748 } |
1756 | 1749 |
1757 | 1750 |
1758 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1751 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
1759 Register result = ToRegister(instr->result()); | 1752 Register result = ToRegister(instr->result()); |
(...skipping 4539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6299 FixedArray::kHeaderSize - kPointerSize)); | 6292 FixedArray::kHeaderSize - kPointerSize)); |
6300 __ bind(&done); | 6293 __ bind(&done); |
6301 } | 6294 } |
6302 | 6295 |
6303 | 6296 |
6304 #undef __ | 6297 #undef __ |
6305 | 6298 |
6306 } } // namespace v8::internal | 6299 } } // namespace v8::internal |
6307 | 6300 |
6308 #endif // V8_TARGET_ARCH_IA32 | 6301 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |