| Index: src/heap.h
|
| diff --git a/src/heap.h b/src/heap.h
|
| index 0ac76c9d57cf0d1608588972dba0192dade291d1..314a1c4cb5124dc7be38412d427c6276e2176c88 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();
|
|
|
|
|