| 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 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1803 | 1803 |
| 1804 | 1804 |
| 1805 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { | 1805 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { |
| 1806 LInstruction* result = new LLoadGlobal; | 1806 LInstruction* result = new LLoadGlobal; |
| 1807 return instr->check_hole_value() | 1807 return instr->check_hole_value() |
| 1808 ? AssignEnvironment(DefineAsRegister(result)) | 1808 ? AssignEnvironment(DefineAsRegister(result)) |
| 1809 : DefineAsRegister(result); | 1809 : DefineAsRegister(result); |
| 1810 } | 1810 } |
| 1811 | 1811 |
| 1812 | 1812 |
| 1813 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 1814 return MarkAsCall(DefineFixed(new LLoadGlobalGeneric, eax), instr); |
| 1815 } |
| 1816 |
| 1817 |
| 1813 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 1818 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { |
| 1814 return new LStoreGlobal(UseRegisterAtStart(instr->value())); | 1819 return new LStoreGlobal(UseRegisterAtStart(instr->value())); |
| 1815 } | 1820 } |
| 1816 | 1821 |
| 1817 | 1822 |
| 1818 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 1823 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
| 1819 return DefineAsRegister( | 1824 return DefineAsRegister( |
| 1820 new LLoadNamedField(UseRegisterAtStart(instr->object()))); | 1825 new LLoadNamedField(UseRegisterAtStart(instr->object()))); |
| 1821 } | 1826 } |
| 1822 | 1827 |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2087 void LPointerMap::PrintTo(StringStream* stream) const { | 2092 void LPointerMap::PrintTo(StringStream* stream) const { |
| 2088 stream->Add("{"); | 2093 stream->Add("{"); |
| 2089 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2094 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 2090 if (i != 0) stream->Add(";"); | 2095 if (i != 0) stream->Add(";"); |
| 2091 pointer_operands_[i]->PrintTo(stream); | 2096 pointer_operands_[i]->PrintTo(stream); |
| 2092 } | 2097 } |
| 2093 stream->Add("} @%d", position()); | 2098 stream->Add("} @%d", position()); |
| 2094 } | 2099 } |
| 2095 | 2100 |
| 2096 } } // namespace v8::internal | 2101 } } // namespace v8::internal |
| OLD | NEW |