OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 stream->Add(" "); | 105 stream->Add(" "); |
106 pointer_map()->PrintTo(stream); | 106 pointer_map()->PrintTo(stream); |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 | 110 |
111 void LInstruction::PrintDataTo(StringStream* stream) { | 111 void LInstruction::PrintDataTo(StringStream* stream) { |
112 stream->Add("= "); | 112 stream->Add("= "); |
113 for (int i = 0; i < InputCount(); i++) { | 113 for (int i = 0; i < InputCount(); i++) { |
114 if (i > 0) stream->Add(" "); | 114 if (i > 0) stream->Add(" "); |
115 InputAt(i)->PrintTo(stream); | 115 if (InputAt(i) == NULL) { |
| 116 stream->Add("NULL"); |
| 117 } else { |
| 118 InputAt(i)->PrintTo(stream); |
| 119 } |
116 } | 120 } |
117 } | 121 } |
118 | 122 |
119 | 123 |
120 void LInstruction::PrintOutputOperandTo(StringStream* stream) { | 124 void LInstruction::PrintOutputOperandTo(StringStream* stream) { |
121 if (HasResult()) result()->PrintTo(stream); | 125 if (HasResult()) result()->PrintTo(stream); |
122 } | 126 } |
123 | 127 |
124 | 128 |
125 void LLabel::PrintDataTo(StringStream* stream) { | 129 void LLabel::PrintDataTo(StringStream* stream) { |
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2406 | 2410 |
2407 | 2411 |
2408 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2412 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2409 LOperand* object = UseRegister(instr->object()); | 2413 LOperand* object = UseRegister(instr->object()); |
2410 LOperand* index = UseRegister(instr->index()); | 2414 LOperand* index = UseRegister(instr->index()); |
2411 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2415 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2412 } | 2416 } |
2413 | 2417 |
2414 | 2418 |
2415 } } // namespace v8::internal | 2419 } } // namespace v8::internal |
OLD | NEW |