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

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

Issue 11745011: Improved printing of HForceRepresentation. (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/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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 } 1012 }
1013 return this; 1013 return this;
1014 } 1014 }
1015 1015
1016 1016
1017 void HTypeof::PrintDataTo(StringStream* stream) { 1017 void HTypeof::PrintDataTo(StringStream* stream) {
1018 value()->PrintNameTo(stream); 1018 value()->PrintNameTo(stream);
1019 } 1019 }
1020 1020
1021 1021
1022 void HForceRepresentation::PrintDataTo(StringStream* stream) {
1023 stream->Add("%s ", representation().Mnemonic());
1024 value()->PrintNameTo(stream);
1025 }
1026
1027
1022 void HChange::PrintDataTo(StringStream* stream) { 1028 void HChange::PrintDataTo(StringStream* stream) {
1023 HUnaryOperation::PrintDataTo(stream); 1029 HUnaryOperation::PrintDataTo(stream);
1024 stream->Add(" %s to %s", from().Mnemonic(), to().Mnemonic()); 1030 stream->Add(" %s to %s", from().Mnemonic(), to().Mnemonic());
1025 1031
1026 if (CanTruncateToInt32()) stream->Add(" truncating-int32"); 1032 if (CanTruncateToInt32()) stream->Add(" truncating-int32");
1027 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); 1033 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
1028 if (CheckFlag(kDeoptimizeOnUndefined)) stream->Add(" deopt-on-undefined"); 1034 if (CheckFlag(kDeoptimizeOnUndefined)) stream->Add(" deopt-on-undefined");
1029 } 1035 }
1030 1036
1031 1037
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
2786 2792
2787 2793
2788 void HCheckFunction::Verify() { 2794 void HCheckFunction::Verify() {
2789 HInstruction::Verify(); 2795 HInstruction::Verify();
2790 ASSERT(HasNoUses()); 2796 ASSERT(HasNoUses());
2791 } 2797 }
2792 2798
2793 #endif 2799 #endif
2794 2800
2795 } } // namespace v8::internal 2801 } } // 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