| Index: src/contexts.h
|
| ===================================================================
|
| --- src/contexts.h (revision 7948)
|
| +++ src/contexts.h (working copy)
|
| @@ -107,7 +107,8 @@
|
| V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \
|
| V(MAP_CACHE_INDEX, Object, map_cache) \
|
| V(CONTEXT_DATA_INDEX, Object, data) \
|
| - V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings)
|
| + V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
|
| + V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap)
|
|
|
| // JSFunctions are pairs (context, function code), sometimes also called
|
| // closures. A Context object is used to represent function contexts and
|
| @@ -238,6 +239,7 @@
|
| MAP_CACHE_INDEX,
|
| CONTEXT_DATA_INDEX,
|
| ALLOW_CODE_GEN_FROM_STRINGS_INDEX,
|
| + DERIVED_GET_TRAP_INDEX,
|
|
|
| // Properties from here are treated as weak references by the full GC.
|
| // Scavenge treats them as strong references.
|
| @@ -351,6 +353,11 @@
|
| // eval.
|
| bool GlobalIfNotShadowedByEval(Handle<String> name);
|
|
|
| + // Determine if any function scope in the context call eval and if
|
| + // any of those calls are in non-strict mode.
|
| + void ComputeEvalScopeInfo(bool* outer_scope_calls_eval,
|
| + bool* outer_scope_calls_non_strict_eval);
|
| +
|
| // Code generation support.
|
| static int SlotOffset(int index) {
|
| return kHeaderSize + index * kPointerSize - kHeapObjectTag;
|
|
|