Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index b3364aee4330809364f85ef1eb331a80ec94860d..a5ddac3f2ca48dc32aa2c3a6b01ca603bdca5c13 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -156,6 +156,7 @@ inline Heap* _inline_get_heap_(); |
V(Script, empty_script, EmptyScript) \ |
V(Smi, real_stack_limit, RealStackLimit) \ |
V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
+ V(Smi, arguments_adaptor_deopt_pc_offset, ArgumentsAdaptorDeoptPCOffset) |
#define ROOT_LIST(V) \ |
STRONG_ROOT_LIST(V) \ |
@@ -1067,7 +1068,7 @@ class Heap { |
// Heap root getters. We have versions with and without type::cast() here. |
// You can't use type::cast during GC because the assert fails. |
// TODO(1490): Try removing the unchecked accessors, now that GC marking does |
- // not corrupt the stack. |
+ // not corrupt the map. |
#define ROOT_ACCESSOR(type, name, camel_name) \ |
type* name() { \ |
return type::cast(roots_[k##camel_name##RootIndex]); \ |
@@ -1517,6 +1518,11 @@ class Heap { |
return seed; |
} |
+ void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) { |
+ ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0)); |
+ set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset)); |
+ } |
+ |
private: |
Heap(); |