| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 237   stream->Add("#%d / ", arity()); | 237   stream->Add("#%d / ", arity()); | 
| 238 } | 238 } | 
| 239 | 239 | 
| 240 | 240 | 
| 241 void LUnaryMathOperation::PrintDataTo(StringStream* stream) { | 241 void LUnaryMathOperation::PrintDataTo(StringStream* stream) { | 
| 242   stream->Add("/%s ", hydrogen()->OpName()); | 242   stream->Add("/%s ", hydrogen()->OpName()); | 
| 243   input()->PrintTo(stream); | 243   input()->PrintTo(stream); | 
| 244 } | 244 } | 
| 245 | 245 | 
| 246 | 246 | 
|  | 247 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 
|  | 248   stream->Add("(%d, %d)", context_chain_length(), slot_index()); | 
|  | 249 } | 
|  | 250 | 
|  | 251 | 
| 247 void LCallKeyed::PrintDataTo(StringStream* stream) { | 252 void LCallKeyed::PrintDataTo(StringStream* stream) { | 
| 248   stream->Add("[ecx] #%d / ", arity()); | 253   stream->Add("[ecx] #%d / ", arity()); | 
| 249 } | 254 } | 
| 250 | 255 | 
| 251 | 256 | 
| 252 void LCallNamed::PrintDataTo(StringStream* stream) { | 257 void LCallNamed::PrintDataTo(StringStream* stream) { | 
| 253   SmartPointer<char> name_string = name()->ToCString(); | 258   SmartPointer<char> name_string = name()->ToCString(); | 
| 254   stream->Add("%s #%d / ", *name_string, arity()); | 259   stream->Add("%s #%d / ", *name_string, arity()); | 
| 255 } | 260 } | 
| 256 | 261 | 
| (...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1666       ? AssignEnvironment(DefineAsRegister(result)) | 1671       ? AssignEnvironment(DefineAsRegister(result)) | 
| 1667       : DefineAsRegister(result); | 1672       : DefineAsRegister(result); | 
| 1668 } | 1673 } | 
| 1669 | 1674 | 
| 1670 | 1675 | 
| 1671 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 1676 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { | 
| 1672   return new LStoreGlobal(UseRegisterAtStart(instr->value())); | 1677   return new LStoreGlobal(UseRegisterAtStart(instr->value())); | 
| 1673 } | 1678 } | 
| 1674 | 1679 | 
| 1675 | 1680 | 
|  | 1681 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 
|  | 1682   return DefineAsRegister(new LLoadContextSlot); | 
|  | 1683 } | 
|  | 1684 | 
|  | 1685 | 
| 1676 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 1686 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 
| 1677   return DefineAsRegister( | 1687   return DefineAsRegister( | 
| 1678       new LLoadNamedField(UseRegisterAtStart(instr->object()))); | 1688       new LLoadNamedField(UseRegisterAtStart(instr->object()))); | 
| 1679 } | 1689 } | 
| 1680 | 1690 | 
| 1681 | 1691 | 
| 1682 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | 1692 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | 
| 1683   LOperand* object = UseFixed(instr->object(), eax); | 1693   LOperand* object = UseFixed(instr->object(), eax); | 
| 1684   LLoadNamedGeneric* result = new LLoadNamedGeneric(object); | 1694   LLoadNamedGeneric* result = new LLoadNamedGeneric(object); | 
| 1685   return MarkAsCall(DefineFixed(result, eax), instr); | 1695   return MarkAsCall(DefineFixed(result, eax), instr); | 
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1943 void LPointerMap::PrintTo(StringStream* stream) { | 1953 void LPointerMap::PrintTo(StringStream* stream) { | 
| 1944   stream->Add("{"); | 1954   stream->Add("{"); | 
| 1945   for (int i = 0; i < pointer_operands_.length(); ++i) { | 1955   for (int i = 0; i < pointer_operands_.length(); ++i) { | 
| 1946     if (i != 0) stream->Add(";"); | 1956     if (i != 0) stream->Add(";"); | 
| 1947     pointer_operands_[i]->PrintTo(stream); | 1957     pointer_operands_[i]->PrintTo(stream); | 
| 1948   } | 1958   } | 
| 1949   stream->Add("} @%d", position()); | 1959   stream->Add("} @%d", position()); | 
| 1950 } | 1960 } | 
| 1951 | 1961 | 
| 1952 } }  // namespace v8::internal | 1962 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|