| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index cf6d1613e6545724162d07b7fa22e4ab759f58c6..875aaec164d3f77b72eeb26d2d6233999d042dbd 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -4306,6 +4306,10 @@ class ScopeInfo : public FixedArray {
|
| // exposed to the user in a debugger.
|
| bool LocalIsSynthetic(int var);
|
|
|
| + String* StrongModeFreeVariableName(int var);
|
| + int StrongModeFreeVariableStartPosition(int var);
|
| + int StrongModeFreeVariableEndPosition(int var);
|
| +
|
| // Lookup support for serialized scope info. Returns the
|
| // the stack slot index for a given slot name if the slot is
|
| // present; otherwise returns a value < 0. The name must be an internalized
|
| @@ -4358,11 +4362,12 @@ class ScopeInfo : public FixedArray {
|
| // 3. The number of non-parameter variables allocated on the stack.
|
| // 4. The number of non-parameter and parameter variables allocated in the
|
| // context.
|
| -#define FOR_EACH_NUMERIC_FIELD(V) \
|
| - V(Flags) \
|
| - V(ParameterCount) \
|
| - V(StackLocalCount) \
|
| - V(ContextLocalCount)
|
| +#define FOR_EACH_NUMERIC_FIELD(V) \
|
| + V(Flags) \
|
| + V(ParameterCount) \
|
| + V(StackLocalCount) \
|
| + V(ContextLocalCount) \
|
| + V(StrongModeFreeVariableCount)
|
|
|
| #define FIELD_ACCESSORS(name) \
|
| void Set##name(int value) { \
|
| @@ -4409,7 +4414,12 @@ class ScopeInfo : public FixedArray {
|
| // the context locals in ContextLocalNameEntries. One slot is used per
|
| // context local, so in total this part occupies ContextLocalCount()
|
| // slots in the array.
|
| - // 5. FunctionNameEntryIndex:
|
| + // 5. StrongModeFreeVariableNameEntries:
|
| + // Stores the names of strong mode free variables.
|
| + // 6. StrongModeFreeVariablePositionEntries:
|
| + // Stores the locations (start and end position) of strong mode free
|
| + // variables.
|
| + // 7. FunctionNameEntryIndex:
|
| // If the scope belongs to a named function expression this part contains
|
| // information about the function variable. It always occupies two array
|
| // slots: a. The name of the function variable.
|
| @@ -4418,6 +4428,8 @@ class ScopeInfo : public FixedArray {
|
| int StackLocalEntriesIndex();
|
| int ContextLocalNameEntriesIndex();
|
| int ContextLocalInfoEntriesIndex();
|
| + int StrongModeFreeVariableNameEntriesIndex();
|
| + int StrongModeFreeVariablePositionEntriesIndex();
|
| int FunctionNameEntryIndex();
|
|
|
| // Location of the function variable for named function expressions.
|
|
|