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 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 | 1711 |
1712 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1712 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
1713 HClassOfTestAndBranch* instr) { | 1713 HClassOfTestAndBranch* instr) { |
1714 LOperand* value = UseRegister(instr->value()); | 1714 LOperand* value = UseRegister(instr->value()); |
1715 return new(zone()) LClassOfTestAndBranch(value, | 1715 return new(zone()) LClassOfTestAndBranch(value, |
1716 TempRegister(), | 1716 TempRegister(), |
1717 TempRegister()); | 1717 TempRegister()); |
1718 } | 1718 } |
1719 | 1719 |
1720 | 1720 |
1721 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( | |
1722 HFixedArrayBaseLength* instr) { | |
1723 LOperand* array = UseRegisterAtStart(instr->value()); | |
1724 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); | |
1725 } | |
1726 | |
1727 | |
1728 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | 1721 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
1729 LOperand* map = UseRegisterAtStart(instr->value()); | 1722 LOperand* map = UseRegisterAtStart(instr->value()); |
1730 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | 1723 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
1731 } | 1724 } |
1732 | 1725 |
1733 | 1726 |
1734 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | 1727 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
1735 LOperand* object = UseRegisterAtStart(instr->value()); | 1728 LOperand* object = UseRegisterAtStart(instr->value()); |
1736 return DefineAsRegister(new(zone()) LElementsKind(object)); | 1729 return DefineAsRegister(new(zone()) LElementsKind(object)); |
1737 } | 1730 } |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2574 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2567 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2575 LOperand* object = UseRegister(instr->object()); | 2568 LOperand* object = UseRegister(instr->object()); |
2576 LOperand* index = UseTempRegister(instr->index()); | 2569 LOperand* index = UseTempRegister(instr->index()); |
2577 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2570 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2578 } | 2571 } |
2579 | 2572 |
2580 | 2573 |
2581 } } // namespace v8::internal | 2574 } } // namespace v8::internal |
2582 | 2575 |
2583 #endif // V8_TARGET_ARCH_X64 | 2576 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |