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; |