| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index d61d0d7a22848f008274ff0b95bbfe48511d2544..9d8a6fad9954d96eb3576d25a90630a29277d794 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -3263,6 +3263,12 @@ bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) {
|
| }
|
|
|
|
|
| +bool Heap::RootCanBeTreatedAsConstant(RootListIndex root_index) {
|
| + return !RootCanBeWrittenAfterInitialization(root_index) &&
|
| + !InNewSpace(roots_array_start()[root_index]);
|
| +}
|
| +
|
| +
|
| Object* RegExpResultsCache::Lookup(Heap* heap,
|
| String* key_string,
|
| Object* key_pattern,
|
|
|