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 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1839 | 1839 |
1840 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 1840 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { |
1841 LOperand* arguments = UseRegister(instr->arguments()); | 1841 LOperand* arguments = UseRegister(instr->arguments()); |
1842 LOperand* length = UseTempRegister(instr->length()); | 1842 LOperand* length = UseTempRegister(instr->length()); |
1843 LOperand* index = Use(instr->index()); | 1843 LOperand* index = Use(instr->index()); |
1844 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); | 1844 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); |
1845 return AssignEnvironment(DefineAsRegister(result)); | 1845 return AssignEnvironment(DefineAsRegister(result)); |
1846 } | 1846 } |
1847 | 1847 |
1848 | 1848 |
| 1849 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { |
| 1850 LOperand* object = UseFixed(instr->value(), eax); |
| 1851 return MarkAsCall(new LToFastProperties(object), instr); |
| 1852 } |
| 1853 |
| 1854 |
1849 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 1855 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
1850 LTypeof* result = new LTypeof(UseAtStart(instr->value())); | 1856 LTypeof* result = new LTypeof(UseAtStart(instr->value())); |
1851 return MarkAsCall(DefineFixed(result, eax), instr); | 1857 return MarkAsCall(DefineFixed(result, eax), instr); |
1852 } | 1858 } |
1853 | 1859 |
1854 | 1860 |
1855 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { | 1861 LInstruction* LChunkBuilder::DoTypeofIs(HTypeofIs* instr) { |
1856 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); | 1862 return DefineSameAsFirst(new LTypeofIs(UseRegister(instr->value()))); |
1857 } | 1863 } |
1858 | 1864 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1909 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1915 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
1910 HEnvironment* outer = current_block_->last_environment()->outer(); | 1916 HEnvironment* outer = current_block_->last_environment()->outer(); |
1911 current_block_->UpdateEnvironment(outer); | 1917 current_block_->UpdateEnvironment(outer); |
1912 return NULL; | 1918 return NULL; |
1913 } | 1919 } |
1914 | 1920 |
1915 | 1921 |
1916 } } // namespace v8::internal | 1922 } } // namespace v8::internal |
1917 | 1923 |
1918 #endif // V8_TARGET_ARCH_IA32 | 1924 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |