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

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

Issue 7824004: Include more information when printing phi nodes. (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 | « no previous file | 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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 1011
1012 1012
1013 void HPhi::PrintTo(StringStream* stream) { 1013 void HPhi::PrintTo(StringStream* stream) {
1014 stream->Add("["); 1014 stream->Add("[");
1015 for (int i = 0; i < OperandCount(); ++i) { 1015 for (int i = 0; i < OperandCount(); ++i) {
1016 HValue* value = OperandAt(i); 1016 HValue* value = OperandAt(i);
1017 stream->Add(" "); 1017 stream->Add(" ");
1018 value->PrintNameTo(stream); 1018 value->PrintNameTo(stream);
1019 stream->Add(" "); 1019 stream->Add(" ");
1020 } 1020 }
1021 stream->Add(" uses%d_%di_%dd_%dt]", 1021 stream->Add(" uses%d_%di_%dd_%dt",
1022 UseCount(), 1022 UseCount(),
1023 int32_non_phi_uses() + int32_indirect_uses(), 1023 int32_non_phi_uses() + int32_indirect_uses(),
1024 double_non_phi_uses() + double_indirect_uses(), 1024 double_non_phi_uses() + double_indirect_uses(),
1025 tagged_non_phi_uses() + tagged_indirect_uses()); 1025 tagged_non_phi_uses() + tagged_indirect_uses());
1026 stream->Add("%s%s]",
1027 is_live() ? "_live" : "",
1028 IsConvertibleToInteger() ? "" : "_ncti");
1026 } 1029 }
1027 1030
1028 1031
1029 void HPhi::AddInput(HValue* value) { 1032 void HPhi::AddInput(HValue* value) {
1030 inputs_.Add(NULL); 1033 inputs_.Add(NULL);
1031 SetOperandAt(OperandCount() - 1, value); 1034 SetOperandAt(OperandCount() - 1, value);
1032 // Mark phis that may have 'arguments' directly or indirectly as an operand. 1035 // Mark phis that may have 'arguments' directly or indirectly as an operand.
1033 if (!CheckFlag(kIsArguments) && value->CheckFlag(kIsArguments)) { 1036 if (!CheckFlag(kIsArguments) && value->CheckFlag(kIsArguments)) {
1034 SetFlag(kIsArguments); 1037 SetFlag(kIsArguments);
1035 } 1038 }
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
1869 1872
1870 1873
1871 void HCheckPrototypeMaps::Verify() { 1874 void HCheckPrototypeMaps::Verify() {
1872 HInstruction::Verify(); 1875 HInstruction::Verify();
1873 ASSERT(HasNoUses()); 1876 ASSERT(HasNoUses());
1874 } 1877 }
1875 1878
1876 #endif 1879 #endif
1877 1880
1878 } } // namespace v8::internal 1881 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698