Index: src/heap.h |
=================================================================== |
--- src/heap.h (revision 4215) |
+++ src/heap.h (working copy) |
@@ -108,6 +108,7 @@ |
V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
V(FixedArray, natives_source_cache, NativesSourceCache) \ |
V(Object, last_script_id, LastScriptId) \ |
+ V(Script, empty_script, EmptyScript) \ |
V(Smi, real_stack_limit, RealStackLimit) \ |
#if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP |
@@ -758,6 +759,10 @@ |
roots_[kNonMonomorphicCacheRootIndex] = value; |
} |
+ static void public_set_empty_script(Script* script) { |
+ roots_[kEmptyScriptRootIndex] = script; |
+ } |
+ |
// Update the next script id. |
static inline void SetLastScriptId(Object* last_script_id); |