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

Side by Side Diff: src/compiler/graph-visualizer.cc

Issue 917383004: [turbofan] Fix control reducer with re-reducing branches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | test/mjsunit/regress/regress-458876.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/graph-visualizer.h" 5 #include "src/compiler/graph-visualizer.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 #include <string> 8 #include <string>
9 9
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 if (state[i->id()] == kUnvisited) { 793 if (state[i->id()] == kUnvisited) {
794 state[i->id()] = kOnStack; 794 state[i->id()] = kOnStack;
795 stack.push(i); 795 stack.push(i);
796 pop = false; 796 pop = false;
797 break; 797 break;
798 } 798 }
799 } 799 }
800 if (pop) { 800 if (pop) {
801 state[n->id()] = kVisited; 801 state[n->id()] = kVisited;
802 stack.pop(); 802 stack.pop();
803 os << "#" << SafeId(n) << ":" << SafeMnemonic(n) << "("; 803 os << "#" << n->id() << ":" << *n->op() << "(";
804 int j = 0; 804 int j = 0;
805 for (Node* const i : n->inputs()) { 805 for (Node* const i : n->inputs()) {
806 if (j++ > 0) os << ", "; 806 if (j++ > 0) os << ", ";
807 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); 807 os << "#" << SafeId(i) << ":" << SafeMnemonic(i);
808 } 808 }
809 os << ")" << std::endl; 809 os << ")" << std::endl;
810 } 810 }
811 } 811 }
812 return os; 812 return os;
813 } 813 }
814 } 814 }
815 } 815 }
816 } // namespace v8::internal::compiler 816 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | test/mjsunit/regress/regress-458876.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698