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

Side by Side Diff: src/compiler/register-allocator.h

Issue 2355373002: [turbofan] Pre-spill ranges that have a slot use. (Closed)
Patch Set: [turbofan] Don't pre-spill ranges that don't even have a slot use. Created 4 years, 2 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 | « no previous file | src/compiler/register-allocator.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 #ifndef V8_REGISTER_ALLOCATOR_H_ 5 #ifndef V8_REGISTER_ALLOCATOR_H_
6 #define V8_REGISTER_ALLOCATOR_H_ 6 #define V8_REGISTER_ALLOCATOR_H_
7 7
8 #include "src/compiler/instruction.h" 8 #include "src/compiler/instruction.h"
9 #include "src/ostreams.h" 9 #include "src/ostreams.h"
10 #include "src/register-configuration.h" 10 #include "src/register-configuration.h"
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 } 958 }
959 959
960 // TODO(mtrofin): explain why splitting in gap START is always OK. 960 // TODO(mtrofin): explain why splitting in gap START is always OK.
961 LifetimePosition GetSplitPositionForInstruction(const LiveRange* range, 961 LifetimePosition GetSplitPositionForInstruction(const LiveRange* range,
962 int instruction_index); 962 int instruction_index);
963 963
964 Zone* allocation_zone() const { return data()->allocation_zone(); } 964 Zone* allocation_zone() const { return data()->allocation_zone(); }
965 965
966 // Find the optimal split for ranges defined by a memory operand, e.g. 966 // Find the optimal split for ranges defined by a memory operand, e.g.
967 // constants or function parameters passed on the stack. 967 // constants or function parameters passed on the stack.
968 void SplitAndSpillRangesDefinedByMemoryOperand(bool operands_only); 968 void SplitAndSpillRangesDefinedByMemoryOperand();
969 969
970 // Split the given range at the given position. 970 // Split the given range at the given position.
971 // If range starts at or after the given position then the 971 // If range starts at or after the given position then the
972 // original range is returned. 972 // original range is returned.
973 // Otherwise returns the live range that starts at pos and contains 973 // Otherwise returns the live range that starts at pos and contains
974 // all uses from the original range that follow pos. Uses at pos will 974 // all uses from the original range that follow pos. Uses at pos will
975 // still be owned by the original range after splitting. 975 // still be owned by the original range after splitting.
976 LiveRange* SplitRangeAt(LiveRange* range, LifetimePosition pos); 976 LiveRange* SplitRangeAt(LiveRange* range, LifetimePosition pos);
977 977
978 bool CanProcessRange(LiveRange* range) const { 978 bool CanProcessRange(LiveRange* range) const {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 RegisterAllocationData* const data_; 1168 RegisterAllocationData* const data_;
1169 1169
1170 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); 1170 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector);
1171 }; 1171 };
1172 1172
1173 } // namespace compiler 1173 } // namespace compiler
1174 } // namespace internal 1174 } // namespace internal
1175 } // namespace v8 1175 } // namespace v8
1176 1176
1177 #endif // V8_REGISTER_ALLOCATOR_H_ 1177 #endif // V8_REGISTER_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698