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

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

Issue 748773002: [turbofan] put spill slot reuse behind a flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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/graph-visualizer.cc ('k') | src/compiler/register-allocator.h » ('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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 Run<AllocateGeneralRegistersPhase>(); 937 Run<AllocateGeneralRegistersPhase>();
938 if (!data->register_allocator()->AllocationOk()) { 938 if (!data->register_allocator()->AllocationOk()) {
939 data->set_compilation_failed(); 939 data->set_compilation_failed();
940 return; 940 return;
941 } 941 }
942 Run<AllocateDoubleRegistersPhase>(); 942 Run<AllocateDoubleRegistersPhase>();
943 if (!data->register_allocator()->AllocationOk()) { 943 if (!data->register_allocator()->AllocationOk()) {
944 data->set_compilation_failed(); 944 data->set_compilation_failed();
945 return; 945 return;
946 } 946 }
947 Run<ReuseSpillSlotsPhase>(); 947 if (FLAG_turbo_reuse_spill_slots) {
948 Run<ReuseSpillSlotsPhase>();
949 }
948 Run<PopulatePointerMapsPhase>(); 950 Run<PopulatePointerMapsPhase>();
949 Run<ConnectRangesPhase>(); 951 Run<ConnectRangesPhase>();
950 Run<ResolveControlFlowPhase>(); 952 Run<ResolveControlFlowPhase>();
951 953
952 if (FLAG_trace_turbo) { 954 if (FLAG_trace_turbo) {
953 OFStream os(stdout); 955 OFStream os(stdout);
954 PrintableInstructionSequence printable = {config, data->sequence()}; 956 PrintableInstructionSequence printable = {config, data->sequence()};
955 os << "----- Instruction sequence after register allocation -----\n" 957 os << "----- Instruction sequence after register allocation -----\n"
956 << printable; 958 << printable;
957 } 959 }
(...skipping 15 matching lines...) Expand all
973 } 975 }
974 976
975 977
976 void Pipeline::TearDown() { 978 void Pipeline::TearDown() {
977 InstructionOperand::TearDownCaches(); 979 InstructionOperand::TearDownCaches();
978 } 980 }
979 981
980 } // namespace compiler 982 } // namespace compiler
981 } // namespace internal 983 } // namespace internal
982 } // namespace v8 984 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/graph-visualizer.cc ('k') | src/compiler/register-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698