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 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 | 1709 |
1710 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1710 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
1711 HClassOfTestAndBranch* instr) { | 1711 HClassOfTestAndBranch* instr) { |
1712 ASSERT(instr->value()->representation().IsTagged()); | 1712 ASSERT(instr->value()->representation().IsTagged()); |
1713 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), | 1713 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), |
1714 TempRegister(), | 1714 TempRegister(), |
1715 TempRegister()); | 1715 TempRegister()); |
1716 } | 1716 } |
1717 | 1717 |
1718 | 1718 |
1719 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { | |
1720 LOperand* array = UseRegisterAtStart(instr->value()); | |
1721 return DefineAsRegister(new(zone()) LJSArrayLength(array)); | |
1722 } | |
1723 | |
1724 | |
1725 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( | 1719 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
1726 HFixedArrayBaseLength* instr) { | 1720 HFixedArrayBaseLength* instr) { |
1727 LOperand* array = UseRegisterAtStart(instr->value()); | 1721 LOperand* array = UseRegisterAtStart(instr->value()); |
1728 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); | 1722 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); |
1729 } | 1723 } |
1730 | 1724 |
1731 | 1725 |
1732 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | 1726 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
1733 LOperand* map = UseRegisterAtStart(instr->value()); | 1727 LOperand* map = UseRegisterAtStart(instr->value()); |
1734 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | 1728 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2621 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2615 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2622 LOperand* object = UseRegister(instr->object()); | 2616 LOperand* object = UseRegister(instr->object()); |
2623 LOperand* index = UseTempRegister(instr->index()); | 2617 LOperand* index = UseTempRegister(instr->index()); |
2624 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2618 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2625 } | 2619 } |
2626 | 2620 |
2627 | 2621 |
2628 } } // namespace v8::internal | 2622 } } // namespace v8::internal |
2629 | 2623 |
2630 #endif // V8_TARGET_ARCH_IA32 | 2624 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |