diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-09-07 17:07:13 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-09-07 20:59:13 +0200 |
commit | 586db2414a338e1bf6eaf6e672a3adc7ce309f6a (patch) | |
tree | 139fa972aef648481ddee22a3a85b99707d28df5 /deps/v8/src/contexts.h | |
parent | 12ed7c94e5160aa6d38e3d2cb2a73dae0a6f9342 (diff) | |
download | android-node-v8-586db2414a338e1bf6eaf6e672a3adc7ce309f6a.tar.gz android-node-v8-586db2414a338e1bf6eaf6e672a3adc7ce309f6a.tar.bz2 android-node-v8-586db2414a338e1bf6eaf6e672a3adc7ce309f6a.zip |
deps: update V8 to 6.9.427.22
PR-URL: https://github.com/nodejs/node/pull/21983
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'deps/v8/src/contexts.h')
-rw-r--r-- | deps/v8/src/contexts.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/deps/v8/src/contexts.h b/deps/v8/src/contexts.h index b66bb94a4b..3a4f8329c7 100644 --- a/deps/v8/src/contexts.h +++ b/deps/v8/src/contexts.h @@ -71,8 +71,6 @@ enum ContextLookupFlags { V(ASYNC_GENERATOR_AWAIT_UNCAUGHT, JSFunction, async_generator_await_uncaught) #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ - V(ARRAY_POP_INDEX, JSFunction, array_pop) \ - V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ @@ -96,6 +94,7 @@ enum ContextLookupFlags { V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ + V(RESOLVE_LOCALE_FUNCTION_INDEX, JSFunction, resolve_locale) \ V(SET_ADD_INDEX, JSFunction, set_add) \ V(SET_DELETE_INDEX, JSFunction, set_delete) \ V(SET_HAS_INDEX, JSFunction, set_has) \ @@ -202,6 +201,8 @@ enum ContextLookupFlags { intl_date_time_format_function) \ V(INTL_NUMBER_FORMAT_FUNCTION_INDEX, JSFunction, \ intl_number_format_function) \ + V(INTL_NUMBER_FORMAT_INTERNAL_FORMAT_NUMBER_SHARED_FUN, SharedFunctionInfo, \ + number_format_internal_format_number_shared_fun) \ V(INTL_LOCALE_FUNCTION_INDEX, JSFunction, intl_locale_function) \ V(INTL_COLLATOR_FUNCTION_INDEX, JSFunction, intl_collator_function) \ V(INTL_PLURAL_RULES_FUNCTION_INDEX, JSFunction, intl_plural_rules_function) \ @@ -271,7 +272,6 @@ enum ContextLookupFlags { initial_regexp_string_iterator_prototype_map_index) \ V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ - 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) \ @@ -366,7 +366,8 @@ class ScriptContextTable : public FixedArray { inline int used() const; inline void set_used(int used); - static inline Handle<Context> GetContext(Handle<ScriptContextTable> table, + static inline Handle<Context> GetContext(Isolate* isolate, + Handle<ScriptContextTable> table, int i); // Lookup a variable `name` in a ScriptContextTable. @@ -374,8 +375,8 @@ class ScriptContextTable : public FixedArray { // valid information about its location. // If it returns false, `result` is untouched. V8_WARN_UNUSED_RESULT - static bool Lookup(Handle<ScriptContextTable> table, Handle<String> name, - LookupResult* result); + static bool Lookup(Isolate* isolate, Handle<ScriptContextTable> table, + Handle<String> name, LookupResult* result); V8_WARN_UNUSED_RESULT static Handle<ScriptContextTable> Extend(Handle<ScriptContextTable> table, @@ -434,8 +435,13 @@ class ScriptContextTable : public FixedArray { // Script contexts from all top-level scripts are gathered in // ScriptContextTable. -class Context : public FixedArray { +class Context : public FixedArray, public NeverReadOnlySpaceObject { public: + // Use the mixin methods over the HeapObject methods. + // TODO(v8:7786) Remove once the HeapObject methods are gone. + using NeverReadOnlySpaceObject::GetHeap; + using NeverReadOnlySpaceObject::GetIsolate; + // Conversions. static inline Context* cast(Object* context); |