| Index: src/hydrogen-instructions.cc
|
| ===================================================================
|
| --- src/hydrogen-instructions.cc (revision 8261)
|
| +++ src/hydrogen-instructions.cc (working copy)
|
| @@ -686,15 +686,13 @@
|
|
|
|
|
| void HControlInstruction::PrintDataTo(StringStream* stream) {
|
| - if (FirstSuccessor() != NULL) {
|
| - int first_id = FirstSuccessor()->block_id();
|
| - if (SecondSuccessor() == NULL) {
|
| - stream->Add(" B%d", first_id);
|
| - } else {
|
| - int second_id = SecondSuccessor()->block_id();
|
| - stream->Add(" goto (B%d, B%d)", first_id, second_id);
|
| - }
|
| + stream->Add(" goto (");
|
| + bool first_block = true;
|
| + for (HSuccessorIterator it(this); !it.Done(); it.Advance()) {
|
| + stream->Add(first_block ? "B%d" : ", B%d", it.Current()->block_id());
|
| + first_block = false;
|
| }
|
| + stream->Add(")");
|
| }
|
|
|
|
|
| @@ -704,6 +702,11 @@
|
| }
|
|
|
|
|
| +void HReturn::PrintDataTo(StringStream* stream) {
|
| + value()->PrintNameTo(stream);
|
| +}
|
| +
|
| +
|
| void HCompareMap::PrintDataTo(StringStream* stream) {
|
| value()->PrintNameTo(stream);
|
| stream->Add(" (%p)", *map());
|
|
|