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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 7862031: Improved printing of Goto and CompareIDAndBranch instructions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 3 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/hydrogen-instructions.h ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 HBinaryOperation::PrintDataTo(stream); 1300 HBinaryOperation::PrintDataTo(stream);
1301 } 1301 }
1302 1302
1303 1303
1304 void HCompareIDAndBranch::PrintDataTo(StringStream* stream) { 1304 void HCompareIDAndBranch::PrintDataTo(StringStream* stream) {
1305 stream->Add(Token::Name(token())); 1305 stream->Add(Token::Name(token()));
1306 stream->Add(" "); 1306 stream->Add(" ");
1307 left()->PrintNameTo(stream); 1307 left()->PrintNameTo(stream);
1308 stream->Add(" "); 1308 stream->Add(" ");
1309 right()->PrintNameTo(stream); 1309 right()->PrintNameTo(stream);
1310 HControlInstruction::PrintDataTo(stream);
1311 }
1312
1313
1314 void HGoto::PrintDataTo(StringStream* stream) {
1315 stream->Add("B%d", SuccessorAt(0)->block_id());
1310 } 1316 }
1311 1317
1312 1318
1313 void HCompareIDAndBranch::SetInputRepresentation(Representation r) { 1319 void HCompareIDAndBranch::SetInputRepresentation(Representation r) {
1314 input_representation_ = r; 1320 input_representation_ = r;
1315 if (r.IsDouble()) { 1321 if (r.IsDouble()) {
1316 SetFlag(kDeoptimizeOnUndefined); 1322 SetFlag(kDeoptimizeOnUndefined);
1317 } else { 1323 } else {
1318 ASSERT(r.IsInteger32()); 1324 ASSERT(r.IsInteger32());
1319 } 1325 }
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 1885
1880 1886
1881 void HCheckPrototypeMaps::Verify() { 1887 void HCheckPrototypeMaps::Verify() {
1882 HInstruction::Verify(); 1888 HInstruction::Verify();
1883 ASSERT(HasNoUses()); 1889 ASSERT(HasNoUses());
1884 } 1890 }
1885 1891
1886 #endif 1892 #endif
1887 1893
1888 } } // namespace v8::internal 1894 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698