OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1853 } | 1853 } |
1854 | 1854 |
1855 | 1855 |
1856 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | 1856 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { |
1857 LOperand* object = UseFixed(instr->object(), eax); | 1857 LOperand* object = UseFixed(instr->object(), eax); |
1858 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), eax); | 1858 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), eax); |
1859 return MarkAsCall(result, instr); | 1859 return MarkAsCall(result, instr); |
1860 } | 1860 } |
1861 | 1861 |
1862 | 1862 |
| 1863 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
| 1864 HLoadFunctionPrototype* instr) { |
| 1865 return AssignEnvironment(DefineAsRegister( |
| 1866 new LLoadFunctionPrototype(UseRegister(instr->function()), |
| 1867 TempRegister()))); |
| 1868 } |
| 1869 |
| 1870 |
1863 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { | 1871 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { |
1864 LOperand* input = UseRegisterAtStart(instr->value()); | 1872 LOperand* input = UseRegisterAtStart(instr->value()); |
1865 return DefineSameAsFirst(new LLoadElements(input)); | 1873 return DefineSameAsFirst(new LLoadElements(input)); |
1866 } | 1874 } |
1867 | 1875 |
1868 | 1876 |
1869 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( | 1877 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( |
1870 HLoadKeyedFastElement* instr) { | 1878 HLoadKeyedFastElement* instr) { |
1871 Representation r = instr->representation(); | 1879 Representation r = instr->representation(); |
1872 LOperand* obj = UseRegisterAtStart(instr->object()); | 1880 LOperand* obj = UseRegisterAtStart(instr->object()); |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2119 void LPointerMap::PrintTo(StringStream* stream) const { | 2127 void LPointerMap::PrintTo(StringStream* stream) const { |
2120 stream->Add("{"); | 2128 stream->Add("{"); |
2121 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2129 for (int i = 0; i < pointer_operands_.length(); ++i) { |
2122 if (i != 0) stream->Add(";"); | 2130 if (i != 0) stream->Add(";"); |
2123 pointer_operands_[i]->PrintTo(stream); | 2131 pointer_operands_[i]->PrintTo(stream); |
2124 } | 2132 } |
2125 stream->Add("} @%d", position()); | 2133 stream->Add("} @%d", position()); |
2126 } | 2134 } |
2127 | 2135 |
2128 } } // namespace v8::internal | 2136 } } // namespace v8::internal |
OLD | NEW |