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

Unified Diff: src/compiler/register-allocator.h

Issue 1219063017: [turbofan] Unit tests for live range conflicts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/greedy-allocator.cc ('k') | test/unittests/compiler/coalesced-live-ranges-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/register-allocator.h
diff --git a/src/compiler/register-allocator.h b/src/compiler/register-allocator.h
index 83f95cbac601608fe178fbcb7880bf77ad87191c..cd3a5f6ca5b1cb7aff1b38ee9e52917f52be2622 100644
--- a/src/compiler/register-allocator.h
+++ b/src/compiler/register-allocator.h
@@ -140,6 +140,10 @@ class LifetimePosition final {
return LifetimePosition(kMaxInt);
}
+ static inline LifetimePosition FromInt(int value) {
+ return LifetimePosition(value);
+ }
+
private:
static const int kHalfStep = 2;
static const int kStep = 2 * kHalfStep;
« no previous file with comments | « src/compiler/greedy-allocator.cc ('k') | test/unittests/compiler/coalesced-live-ranges-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698