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

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

Issue 10696139: Improved printing of CheckPrototypeMaps instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 UNREACHABLE(); 1066 UNREACHABLE();
1067 return ""; 1067 return "";
1068 } 1068 }
1069 1069
1070 void HCheckInstanceType::PrintDataTo(StringStream* stream) { 1070 void HCheckInstanceType::PrintDataTo(StringStream* stream) {
1071 stream->Add("%s ", GetCheckName()); 1071 stream->Add("%s ", GetCheckName());
1072 HUnaryOperation::PrintDataTo(stream); 1072 HUnaryOperation::PrintDataTo(stream);
1073 } 1073 }
1074 1074
1075 1075
1076 void HCheckPrototypeMaps::PrintDataTo(StringStream* stream) {
1077 stream->Add("[receiver_prototype=%p,holder=%p]", *prototype(), *holder());
Yang 2012/07/09 10:39:02 maybe add a whitespace after comma.
Sven Panne 2012/07/09 10:44:08 Similar PrintDataTo functions don't add one, eithe
1078 }
1079
1080
1076 void HCallStub::PrintDataTo(StringStream* stream) { 1081 void HCallStub::PrintDataTo(StringStream* stream) {
1077 stream->Add("%s ", 1082 stream->Add("%s ",
1078 CodeStub::MajorName(major_key_, false)); 1083 CodeStub::MajorName(major_key_, false));
1079 HUnaryCall::PrintDataTo(stream); 1084 HUnaryCall::PrintDataTo(stream);
1080 } 1085 }
1081 1086
1082 1087
1083 void HInstanceOf::PrintDataTo(StringStream* stream) { 1088 void HInstanceOf::PrintDataTo(StringStream* stream) {
1084 left()->PrintNameTo(stream); 1089 left()->PrintNameTo(stream);
1085 stream->Add(" "); 1090 stream->Add(" ");
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2535 2540
2536 2541
2537 void HCheckPrototypeMaps::Verify() { 2542 void HCheckPrototypeMaps::Verify() {
2538 HInstruction::Verify(); 2543 HInstruction::Verify();
2539 ASSERT(HasNoUses()); 2544 ASSERT(HasNoUses());
2540 } 2545 }
2541 2546
2542 #endif 2547 #endif
2543 2548
2544 } } // namespace v8::internal 2549 } } // 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