| Index: src/contexts.h
|
| diff --git a/src/contexts.h b/src/contexts.h
|
| index 65fac4045d3b66856011810803fe03473f198128..eceedb94e72a36d399d4500ac98cfe5e9a4b2087 100644
|
| --- a/src/contexts.h
|
| +++ b/src/contexts.h
|
| @@ -227,6 +227,7 @@ enum ContextLookupFlags {
|
| V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \
|
| V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \
|
| V(UINT8X16_FUNCTION_INDEX, JSFunction, uint8x16_function) \
|
| + V(CURRENT_MODULE_INDEX, JSModule, current_module) \
|
| NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \
|
| NATIVE_CONTEXT_IMPORTED_FIELDS(V)
|
|
|
| @@ -398,6 +399,10 @@ class Context: public FixedArray {
|
| ScopeInfo* scope_info();
|
| String* catch_name();
|
|
|
| + // Find the module context (assuming there is one) and return the associated
|
| + // module object.
|
| + JSModule* module();
|
| +
|
| // Get the context where var declarations will be hoisted to, which
|
| // may be the context itself.
|
| Context* declaration_context();
|
|
|