OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1797 | 1797 |
1798 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 1798 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { |
1799 LOperand* arguments = UseRegister(instr->arguments()); | 1799 LOperand* arguments = UseRegister(instr->arguments()); |
1800 LOperand* length = UseTempRegister(instr->length()); | 1800 LOperand* length = UseTempRegister(instr->length()); |
1801 LOperand* index = UseRegister(instr->index()); | 1801 LOperand* index = UseRegister(instr->index()); |
1802 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); | 1802 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); |
1803 return AssignEnvironment(DefineAsRegister(result)); | 1803 return AssignEnvironment(DefineAsRegister(result)); |
1804 } | 1804 } |
1805 | 1805 |
1806 | 1806 |
| 1807 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { |
| 1808 LOperand* object = UseFixed(instr->value(), r0); |
| 1809 return MarkAsCall(new LToFastProperties(object), instr); |
| 1810 } |
| 1811 |
| 1812 |
1807 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 1813 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
1808 LTypeof* result = new LTypeof(UseRegisterAtStart(instr->value())); | 1814 LTypeof* result = new LTypeof(UseRegisterAtStart(instr->value())); |
1809 return MarkAsCall(DefineFixed(result, r0), instr); | 1815 return MarkAsCall(DefineFixed(result, r0), instr); |
1810 } | 1816 } |
1811 | 1817 |
1812 | 1818 |
1813 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { | 1819 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { |
1814 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); | 1820 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); |
1815 } | 1821 } |
1816 | 1822 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1866 | 1872 |
1867 | 1873 |
1868 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1874 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
1869 HEnvironment* outer = current_block_->last_environment()->outer(); | 1875 HEnvironment* outer = current_block_->last_environment()->outer(); |
1870 current_block_->UpdateEnvironment(outer); | 1876 current_block_->UpdateEnvironment(outer); |
1871 return NULL; | 1877 return NULL; |
1872 } | 1878 } |
1873 | 1879 |
1874 | 1880 |
1875 } } // namespace v8::internal | 1881 } } // namespace v8::internal |
OLD | NEW |