| Index: src/contexts.h
|
| diff --git a/src/contexts.h b/src/contexts.h
|
| index 102d997fdf93db6151b197a2466025c79229f0a0..1f88c946de964f4155863d51fed6d0b6c287fb61 100644
|
| --- a/src/contexts.h
|
| +++ b/src/contexts.h
|
| @@ -369,6 +369,18 @@ class Context: public FixedArray {
|
| Object* OptimizedFunctionsListHead();
|
| void ClearOptimizedFunctions();
|
|
|
| + static int GetContextMapIndexFromElementsKind(
|
| + ElementsKind elements_kind) {
|
| + if (elements_kind == FAST_DOUBLE_ELEMENTS) {
|
| + return Context::DOUBLE_JS_ARRAY_MAP_INDEX;
|
| + } else if (elements_kind == FAST_ELEMENTS) {
|
| + return Context::OBJECT_JS_ARRAY_MAP_INDEX;
|
| + } else {
|
| + ASSERT(elements_kind == FAST_SMI_ONLY_ELEMENTS);
|
| + return Context::SMI_JS_ARRAY_MAP_INDEX;
|
| + }
|
| + }
|
| +
|
| #define GLOBAL_CONTEXT_FIELD_ACCESSORS(index, type, name) \
|
| void set_##name(type* value) { \
|
| ASSERT(IsGlobalContext()); \
|
|
|