Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: src/mips/lithium-mips.cc

Issue 11743012: Fixed printing of LInstructions in the presence of optional arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698