| 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 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 | 1704 |
| 1705 | 1705 |
| 1706 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1706 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
| 1707 HClassOfTestAndBranch* instr) { | 1707 HClassOfTestAndBranch* instr) { |
| 1708 ASSERT(instr->value()->representation().IsTagged()); | 1708 ASSERT(instr->value()->representation().IsTagged()); |
| 1709 LOperand* value = UseRegister(instr->value()); | 1709 LOperand* value = UseRegister(instr->value()); |
| 1710 return new(zone()) LClassOfTestAndBranch(value, TempRegister()); | 1710 return new(zone()) LClassOfTestAndBranch(value, TempRegister()); |
| 1711 } | 1711 } |
| 1712 | 1712 |
| 1713 | 1713 |
| 1714 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { | |
| 1715 LOperand* array = UseRegisterAtStart(instr->value()); | |
| 1716 return DefineAsRegister(new(zone()) LJSArrayLength(array)); | |
| 1717 } | |
| 1718 | |
| 1719 | |
| 1720 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( | 1714 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
| 1721 HFixedArrayBaseLength* instr) { | 1715 HFixedArrayBaseLength* instr) { |
| 1722 LOperand* array = UseRegisterAtStart(instr->value()); | 1716 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1723 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); | 1717 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); |
| 1724 } | 1718 } |
| 1725 | 1719 |
| 1726 | 1720 |
| 1727 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | 1721 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
| 1728 LOperand* map = UseRegisterAtStart(instr->value()); | 1722 LOperand* map = UseRegisterAtStart(instr->value()); |
| 1729 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | 1723 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2540 | 2534 |
| 2541 | 2535 |
| 2542 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2536 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2543 LOperand* object = UseRegister(instr->object()); | 2537 LOperand* object = UseRegister(instr->object()); |
| 2544 LOperand* index = UseRegister(instr->index()); | 2538 LOperand* index = UseRegister(instr->index()); |
| 2545 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2539 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2546 } | 2540 } |
| 2547 | 2541 |
| 2548 | 2542 |
| 2549 } } // namespace v8::internal | 2543 } } // namespace v8::internal |
| OLD | NEW |