OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 10699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10710 } else { | 10710 } else { |
10711 PrintIndent(); | 10711 PrintIndent(); |
10712 trace_.Add("successors"); | 10712 trace_.Add("successors"); |
10713 for (HSuccessorIterator it(current->end()); !it.Done(); it.Advance()) { | 10713 for (HSuccessorIterator it(current->end()); !it.Done(); it.Advance()) { |
10714 trace_.Add(" \"B%d\"", it.Current()->block_id()); | 10714 trace_.Add(" \"B%d\"", it.Current()->block_id()); |
10715 } | 10715 } |
10716 trace_.Add("\n"); | 10716 trace_.Add("\n"); |
10717 } | 10717 } |
10718 | 10718 |
10719 PrintEmptyProperty("xhandlers"); | 10719 PrintEmptyProperty("xhandlers"); |
10720 const char* flags = current->IsLoopSuccessorDominator() | 10720 |
10721 ? "dom-loop-succ" | 10721 { |
10722 : ""; | 10722 PrintIndent(); |
10723 PrintStringProperty("flags", flags); | 10723 trace_.Add("flags"); |
| 10724 if (current->IsLoopSuccessorDominator()) { |
| 10725 trace_.Add(" \"dom-loop-succ\""); |
| 10726 } |
| 10727 if (current->IsUnreachable()) { |
| 10728 trace_.Add(" \"dead\""); |
| 10729 } |
| 10730 if (current->is_osr_entry()) { |
| 10731 trace_.Add(" \"osr\""); |
| 10732 } |
| 10733 trace_.Add("\n"); |
| 10734 } |
10724 | 10735 |
10725 if (current->dominator() != NULL) { | 10736 if (current->dominator() != NULL) { |
10726 PrintBlockProperty("dominator", current->dominator()->block_id()); | 10737 PrintBlockProperty("dominator", current->dominator()->block_id()); |
10727 } | 10738 } |
10728 | 10739 |
10729 PrintIntProperty("loop_depth", current->LoopNestingDepth()); | 10740 PrintIntProperty("loop_depth", current->LoopNestingDepth()); |
10730 | 10741 |
10731 if (chunk != NULL) { | 10742 if (chunk != NULL) { |
10732 int first_index = current->first_instruction_index(); | 10743 int first_index = current->first_instruction_index(); |
10733 int last_index = current->last_instruction_index(); | 10744 int last_index = current->last_instruction_index(); |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10961 if (ShouldProduceTraceOutput()) { | 10972 if (ShouldProduceTraceOutput()) { |
10962 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 10973 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
10963 } | 10974 } |
10964 | 10975 |
10965 #ifdef DEBUG | 10976 #ifdef DEBUG |
10966 graph_->Verify(false); // No full verify. | 10977 graph_->Verify(false); // No full verify. |
10967 #endif | 10978 #endif |
10968 } | 10979 } |
10969 | 10980 |
10970 } } // namespace v8::internal | 10981 } } // namespace v8::internal |
OLD | NEW |