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 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 Handle<Object> value = instr->value(); | 1567 Handle<Object> value = instr->value(); |
1568 if (value->IsSmi()) { | 1568 if (value->IsSmi()) { |
1569 __ Move(ToRegister(instr->result()), value); | 1569 __ Move(ToRegister(instr->result()), value); |
1570 } else { | 1570 } else { |
1571 __ LoadHeapObject(ToRegister(instr->result()), | 1571 __ LoadHeapObject(ToRegister(instr->result()), |
1572 Handle<HeapObject>::cast(value)); | 1572 Handle<HeapObject>::cast(value)); |
1573 } | 1573 } |
1574 } | 1574 } |
1575 | 1575 |
1576 | 1576 |
1577 void LCodeGen::DoJSArrayLength(LJSArrayLength* instr) { | |
1578 Register result = ToRegister(instr->result()); | |
1579 Register array = ToRegister(instr->value()); | |
1580 __ movq(result, FieldOperand(array, JSArray::kLengthOffset)); | |
1581 } | |
1582 | |
1583 | |
1584 void LCodeGen::DoFixedArrayBaseLength(LFixedArrayBaseLength* instr) { | 1577 void LCodeGen::DoFixedArrayBaseLength(LFixedArrayBaseLength* instr) { |
1585 Register result = ToRegister(instr->result()); | 1578 Register result = ToRegister(instr->result()); |
1586 Register array = ToRegister(instr->value()); | 1579 Register array = ToRegister(instr->value()); |
1587 __ movq(result, FieldOperand(array, FixedArrayBase::kLengthOffset)); | 1580 __ movq(result, FieldOperand(array, FixedArrayBase::kLengthOffset)); |
1588 } | 1581 } |
1589 | 1582 |
1590 | 1583 |
1591 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1584 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
1592 Register result = ToRegister(instr->result()); | 1585 Register result = ToRegister(instr->result()); |
1593 Register map = ToRegister(instr->value()); | 1586 Register map = ToRegister(instr->value()); |
(...skipping 4253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5847 FixedArray::kHeaderSize - kPointerSize)); | 5840 FixedArray::kHeaderSize - kPointerSize)); |
5848 __ bind(&done); | 5841 __ bind(&done); |
5849 } | 5842 } |
5850 | 5843 |
5851 | 5844 |
5852 #undef __ | 5845 #undef __ |
5853 | 5846 |
5854 } } // namespace v8::internal | 5847 } } // namespace v8::internal |
5855 | 5848 |
5856 #endif // V8_TARGET_ARCH_X64 | 5849 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |