| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 stream->Add("#%d / ", arity()); | 256 stream->Add("#%d / ", arity()); |
| 257 } | 257 } |
| 258 | 258 |
| 259 | 259 |
| 260 void LUnaryMathOperation::PrintDataTo(StringStream* stream) const { | 260 void LUnaryMathOperation::PrintDataTo(StringStream* stream) const { |
| 261 stream->Add("/%s ", hydrogen()->OpName()); | 261 stream->Add("/%s ", hydrogen()->OpName()); |
| 262 input()->PrintTo(stream); | 262 input()->PrintTo(stream); |
| 263 } | 263 } |
| 264 | 264 |
| 265 | 265 |
| 266 void LLoadContextSlot::PrintDataTo(StringStream* stream) const { |
| 267 hydrogen()->PrintDataTo(stream); |
| 268 } |
| 269 |
| 270 |
| 266 void LCallKeyed::PrintDataTo(StringStream* stream) const { | 271 void LCallKeyed::PrintDataTo(StringStream* stream) const { |
| 267 stream->Add("[ecx] #%d / ", arity()); | 272 stream->Add("[ecx] #%d / ", arity()); |
| 268 } | 273 } |
| 269 | 274 |
| 270 | 275 |
| 271 void LCallNamed::PrintDataTo(StringStream* stream) const { | 276 void LCallNamed::PrintDataTo(StringStream* stream) const { |
| 272 SmartPointer<char> name_string = name()->ToCString(); | 277 SmartPointer<char> name_string = name()->ToCString(); |
| 273 stream->Add("%s #%d / ", *name_string, arity()); | 278 stream->Add("%s #%d / ", *name_string, arity()); |
| 274 } | 279 } |
| 275 | 280 |
| (...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 ? AssignEnvironment(DefineAsRegister(result)) | 1825 ? AssignEnvironment(DefineAsRegister(result)) |
| 1821 : DefineAsRegister(result); | 1826 : DefineAsRegister(result); |
| 1822 } | 1827 } |
| 1823 | 1828 |
| 1824 | 1829 |
| 1825 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 1830 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { |
| 1826 return new LStoreGlobal(UseRegisterAtStart(instr->value())); | 1831 return new LStoreGlobal(UseRegisterAtStart(instr->value())); |
| 1827 } | 1832 } |
| 1828 | 1833 |
| 1829 | 1834 |
| 1835 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1836 return DefineAsRegister(new LLoadContextSlot); |
| 1837 } |
| 1838 |
| 1839 |
| 1830 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 1840 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
| 1831 return DefineAsRegister( | 1841 return DefineAsRegister( |
| 1832 new LLoadNamedField(UseRegisterAtStart(instr->object()))); | 1842 new LLoadNamedField(UseRegisterAtStart(instr->object()))); |
| 1833 } | 1843 } |
| 1834 | 1844 |
| 1835 | 1845 |
| 1836 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | 1846 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { |
| 1837 LOperand* object = UseFixed(instr->object(), eax); | 1847 LOperand* object = UseFixed(instr->object(), eax); |
| 1838 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), eax); | 1848 LInstruction* result = DefineFixed(new LLoadNamedGeneric(object), eax); |
| 1839 return MarkAsCall(result, instr); | 1849 return MarkAsCall(result, instr); |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2099 void LPointerMap::PrintTo(StringStream* stream) const { | 2109 void LPointerMap::PrintTo(StringStream* stream) const { |
| 2100 stream->Add("{"); | 2110 stream->Add("{"); |
| 2101 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2111 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 2102 if (i != 0) stream->Add(";"); | 2112 if (i != 0) stream->Add(";"); |
| 2103 pointer_operands_[i]->PrintTo(stream); | 2113 pointer_operands_[i]->PrintTo(stream); |
| 2104 } | 2114 } |
| 2105 stream->Add("} @%d", position()); | 2115 stream->Add("} @%d", position()); |
| 2106 } | 2116 } |
| 2107 | 2117 |
| 2108 } } // namespace v8::internal | 2118 } } // namespace v8::internal |
| OLD | NEW |