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

Side by Side Diff: src/compiler/pipeline.cc

Issue 898353002: [turbofan] Use heavy-handed graph duplication to do loop peeling for OSR. (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/osr.cc ('k') | test/cctest/compiler/test-osr.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 748
749 { // Print JSON. 749 { // Print JSON.
750 FILE* json_file = OpenVisualizerLogFile(info, NULL, "json", "a+"); 750 FILE* json_file = OpenVisualizerLogFile(info, NULL, "json", "a+");
751 if (json_file == nullptr) return; 751 if (json_file == nullptr) return;
752 OFStream json_of(json_file); 752 OFStream json_of(json_file);
753 json_of << "{\"name\":\"" << phase << "\",\"type\":\"graph\",\"data\":" 753 json_of << "{\"name\":\"" << phase << "\",\"type\":\"graph\",\"data\":"
754 << AsJSON(*graph, data->source_positions()) << "},\n"; 754 << AsJSON(*graph, data->source_positions()) << "},\n";
755 fclose(json_file); 755 fclose(json_file);
756 } 756 }
757 757
758 OFStream os(stdout);
759 if (FLAG_trace_turbo_graph) { // Simple textual RPO. 758 if (FLAG_trace_turbo_graph) { // Simple textual RPO.
759 OFStream os(stdout);
760 os << "-- Graph after " << phase << " -- " << std::endl; 760 os << "-- Graph after " << phase << " -- " << std::endl;
761 os << AsRPO(*graph); 761 os << AsRPO(*graph);
762 } 762 }
763 } 763 }
764 }; 764 };
765 765
766 766
767 struct VerifyGraphPhase { 767 struct VerifyGraphPhase {
768 static const char* phase_name() { return nullptr; } 768 static const char* phase_name() { return nullptr; }
769 769
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 1170
1171 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { 1171 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) {
1172 TurboCfgFile tcf(data->isolate()); 1172 TurboCfgFile tcf(data->isolate());
1173 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); 1173 tcf << AsC1VAllocator("CodeGen", data->register_allocator());
1174 } 1174 }
1175 } 1175 }
1176 1176
1177 } // namespace compiler 1177 } // namespace compiler
1178 } // namespace internal 1178 } // namespace internal
1179 } // namespace v8 1179 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/osr.cc ('k') | test/cctest/compiler/test-osr.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698