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 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2252 | 2256 |
2253 | 2257 |
2254 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2258 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2255 LOperand* object = UseRegister(instr->object()); | 2259 LOperand* object = UseRegister(instr->object()); |
2256 LOperand* index = UseRegister(instr->index()); | 2260 LOperand* index = UseRegister(instr->index()); |
2257 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2261 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2258 } | 2262 } |
2259 | 2263 |
2260 | 2264 |
2261 } } // namespace v8::internal | 2265 } } // namespace v8::internal |
OLD | NEW |