Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index a25f8a51c9ae041fb4b35c0792dba5bfccc19f6d..78c0e5b26b410a2cb6a22e17464cc8bd35d7f7b7 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -1615,6 +1615,8 @@ class Heap { |
// Generated code can embed direct references to non-writable roots if |
// they are in new space. |
static bool RootCanBeWrittenAfterInitialization(RootListIndex root_index); |
+ // Generated code can treat direct references to this root as constant. |
+ bool RootCanBeTreatedAsConstant(RootListIndex root_index); |
MUST_USE_RESULT MaybeObject* NumberToString( |
Object* number, bool check_number_string_cache = true, |