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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 stream->Add(" "); | 107 stream->Add(" "); |
108 pointer_map()->PrintTo(stream); | 108 pointer_map()->PrintTo(stream); |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 | 112 |
113 void LInstruction::PrintDataTo(StringStream* stream) { | 113 void LInstruction::PrintDataTo(StringStream* stream) { |
114 stream->Add("= "); | 114 stream->Add("= "); |
115 for (int i = 0; i < InputCount(); i++) { | 115 for (int i = 0; i < InputCount(); i++) { |
116 if (i > 0) stream->Add(" "); | 116 if (i > 0) stream->Add(" "); |
117 InputAt(i)->PrintTo(stream); | 117 if (InputAt(i) == NULL) { |
| 118 stream->Add("NULL"); |
| 119 } else { |
| 120 InputAt(i)->PrintTo(stream); |
| 121 } |
118 } | 122 } |
119 } | 123 } |
120 | 124 |
121 | 125 |
122 void LInstruction::PrintOutputOperandTo(StringStream* stream) { | 126 void LInstruction::PrintOutputOperandTo(StringStream* stream) { |
123 if (HasResult()) result()->PrintTo(stream); | 127 if (HasResult()) result()->PrintTo(stream); |
124 } | 128 } |
125 | 129 |
126 | 130 |
127 void LLabel::PrintDataTo(StringStream* stream) { | 131 void LLabel::PrintDataTo(StringStream* stream) { |
(...skipping 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2506 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2510 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2507 LOperand* object = UseRegister(instr->object()); | 2511 LOperand* object = UseRegister(instr->object()); |
2508 LOperand* index = UseTempRegister(instr->index()); | 2512 LOperand* index = UseTempRegister(instr->index()); |
2509 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2513 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2510 } | 2514 } |
2511 | 2515 |
2512 | 2516 |
2513 } } // namespace v8::internal | 2517 } } // namespace v8::internal |
2514 | 2518 |
2515 #endif // V8_TARGET_ARCH_IA32 | 2519 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |