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

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

Issue 11177004: Improved printing of HLoadElements instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 case IS_SYMBOL: 1051 case IS_SYMBOL:
1052 *mask = kIsSymbolMask; 1052 *mask = kIsSymbolMask;
1053 *tag = kSymbolTag; 1053 *tag = kSymbolTag;
1054 return; 1054 return;
1055 default: 1055 default:
1056 UNREACHABLE(); 1056 UNREACHABLE();
1057 } 1057 }
1058 } 1058 }
1059 1059
1060 1060
1061 void HLoadElements::PrintDataTo(StringStream* stream) {
1062 value()->PrintNameTo(stream);
1063 stream->Add(" ");
1064 typecheck()->PrintNameTo(stream);
1065 }
1066
1067
1061 void HCheckMaps::PrintDataTo(StringStream* stream) { 1068 void HCheckMaps::PrintDataTo(StringStream* stream) {
1062 value()->PrintNameTo(stream); 1069 value()->PrintNameTo(stream);
1063 stream->Add(" [%p", *map_set()->first()); 1070 stream->Add(" [%p", *map_set()->first());
1064 for (int i = 1; i < map_set()->length(); ++i) { 1071 for (int i = 1; i < map_set()->length(); ++i) {
1065 stream->Add(",%p", *map_set()->at(i)); 1072 stream->Add(",%p", *map_set()->at(i));
1066 } 1073 }
1067 stream->Add("]"); 1074 stream->Add("]");
1068 } 1075 }
1069 1076
1070 1077
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2627 2634
2628 2635
2629 void HCheckPrototypeMaps::Verify() { 2636 void HCheckPrototypeMaps::Verify() {
2630 HInstruction::Verify(); 2637 HInstruction::Verify();
2631 ASSERT(HasNoUses()); 2638 ASSERT(HasNoUses());
2632 } 2639 }
2633 2640
2634 #endif 2641 #endif
2635 2642
2636 } } // namespace v8::internal 2643 } } // 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