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

Side by Side Diff: src/x64/lithium-x64.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/mips/lithium-mips.cc ('k') | no next file » | 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 2225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2357 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2354 LOperand* object = UseRegister(instr->object()); 2358 LOperand* object = UseRegister(instr->object());
2355 LOperand* index = UseTempRegister(instr->index()); 2359 LOperand* index = UseTempRegister(instr->index());
2356 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2360 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2357 } 2361 }
2358 2362
2359 2363
2360 } } // namespace v8::internal 2364 } } // namespace v8::internal
2361 2365
2362 #endif // V8_TARGET_ARCH_X64 2366 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698