Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index a442ccc662cfc2dd93059e81d3718eef8a81b9f6..c1e08a2d78eb1faa8073860e1484534f3071fb2f 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -6694,6 +6694,18 @@ class SharedFunctionInfo: public HeapObject { |
static const int kNotFound = -1; |
+ // Helpers for assembly code that does a backwards walk of the optimized code |
+ // map. |
+ static const int kOffsetToPreviousContext = |
+ FixedArray::kHeaderSize + kPointerSize * (kContextOffset - kEntryLength); |
+ static const int kOffsetToPreviousCachedCode = |
+ FixedArray::kHeaderSize + |
+ kPointerSize * (kCachedCodeOffset - kEntryLength); |
+ static const int kOffsetToPreviousLiterals = |
+ FixedArray::kHeaderSize + kPointerSize * (kLiteralsOffset - kEntryLength); |
+ static const int kOffsetToPreviousOsrAstId = |
+ FixedArray::kHeaderSize + kPointerSize * (kOsrAstIdOffset - kEntryLength); |
+ |
// [scope_info]: Scope info. |
DECL_ACCESSORS(scope_info, ScopeInfo) |