diff options
Diffstat (limited to 'deps/v8/src/contexts.h')
-rw-r--r-- | deps/v8/src/contexts.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/deps/v8/src/contexts.h b/deps/v8/src/contexts.h index 5f8eecb201..c1bca7557e 100644 --- a/deps/v8/src/contexts.h +++ b/deps/v8/src/contexts.h @@ -5,7 +5,7 @@ #ifndef V8_CONTEXTS_H_ #define V8_CONTEXTS_H_ -#include "src/objects.h" +#include "src/objects/fixed-array.h" namespace v8 { namespace internal { @@ -316,6 +316,8 @@ enum ContextLookupFlags { V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \ V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \ V(PROXY_MAP_INDEX, Map, proxy_map) \ + V(PROXY_REVOCABLE_RESULT_MAP_INDEX, Map, proxy_revocable_result_map) \ + V(PROXY_REVOKE_SHARED_FUN, SharedFunctionInfo, proxy_revoke_shared_fun) \ V(PROMISE_GET_CAPABILITIES_EXECUTOR_SHARED_FUN, SharedFunctionInfo, \ promise_get_capabilities_executor_shared_fun) \ V(PROMISE_RESOLVE_SHARED_FUN, SharedFunctionInfo, \ @@ -343,6 +345,7 @@ enum ContextLookupFlags { V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ V(SECURITY_TOKEN_INDEX, Object, security_token) \ V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \ + V(SERIALIZED_OBJECTS, FixedArray, serialized_objects) \ V(SET_VALUE_ITERATOR_MAP_INDEX, Map, set_value_iterator_map) \ V(SET_KEY_VALUE_ITERATOR_MAP_INDEX, Map, set_key_value_iterator_map) \ V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ @@ -450,15 +453,8 @@ class ScriptContextTable : public FixedArray { static Handle<ScriptContextTable> Extend(Handle<ScriptContextTable> table, Handle<Context> script_context); - static int GetContextOffset(int context_index) { - return kFirstContextOffset + context_index * kPointerSize; - } - - private: - static const int kUsedSlot = 0; - static const int kFirstContextSlot = kUsedSlot + 1; - static const int kFirstContextOffset = - FixedArray::kHeaderSize + kFirstContextSlot * kPointerSize; + static const int kUsedSlotIndex = 0; + static const int kFirstContextSlotIndex = 1; DISALLOW_IMPLICIT_CONSTRUCTORS(ScriptContextTable); }; @@ -566,6 +562,9 @@ class Context: public FixedArray { static const int FIRST_FUNCTION_MAP_INDEX = SLOPPY_FUNCTION_MAP_INDEX; static const int LAST_FUNCTION_MAP_INDEX = CLASS_FUNCTION_MAP_INDEX; + static const int kNoContext = 0; + static const int kInvalidContext = 1; + void ResetErrorsThrown(); void IncrementErrorsThrown(); int GetErrorsThrown(); |