diff options
Diffstat (limited to 'deps/v8/src/wasm/wasm-objects-inl.h')
-rw-r--r-- | deps/v8/src/wasm/wasm-objects-inl.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/deps/v8/src/wasm/wasm-objects-inl.h b/deps/v8/src/wasm/wasm-objects-inl.h index 481d2274bf..0144b8af5b 100644 --- a/deps/v8/src/wasm/wasm-objects-inl.h +++ b/deps/v8/src/wasm/wasm-objects-inl.h @@ -22,6 +22,7 @@ namespace v8 { namespace internal { CAST_ACCESSOR(WasmDebugInfo) +CAST_ACCESSOR(WasmExceptionObject) CAST_ACCESSOR(WasmExportedFunctionData) CAST_ACCESSOR(WasmGlobalObject) CAST_ACCESSOR(WasmInstanceObject) @@ -101,10 +102,7 @@ int WasmGlobalObject::type_size() const { } Address WasmGlobalObject::address() const { - uint32_t buffer_size = 0; - DCHECK(array_buffer()->byte_length()->ToUint32(&buffer_size)); - DCHECK_LE(offset() + type_size(), buffer_size); - USE(buffer_size); + DCHECK_LE(offset() + type_size(), array_buffer()->byte_length()); return Address(array_buffer()->backing_store()) + offset(); } @@ -187,6 +185,8 @@ OPTIONAL_ACCESSORS(WasmInstanceObject, indirect_function_table_instances, FixedArray, kIndirectFunctionTableInstancesOffset) OPTIONAL_ACCESSORS(WasmInstanceObject, managed_native_allocations, Foreign, kManagedNativeAllocationsOffset) +OPTIONAL_ACCESSORS(WasmInstanceObject, exceptions_table, FixedArray, + kExceptionsTableOffset) ACCESSORS(WasmInstanceObject, undefined_value, Oddball, kUndefinedValueOffset) ACCESSORS(WasmInstanceObject, null_value, Oddball, kNullValueOffset) ACCESSORS(WasmInstanceObject, centry_stub, Code, kCEntryStubOffset) @@ -209,6 +209,11 @@ ImportedFunctionEntry::ImportedFunctionEntry( DCHECK_LT(index, instance->module()->num_imported_functions); } +// WasmExceptionObject +ACCESSORS(WasmExceptionObject, serialized_signature, PodArray<wasm::ValueType>, + kSerializedSignatureOffset) +ACCESSORS(WasmExceptionObject, exception_tag, HeapObject, kExceptionTagOffset) + // WasmExportedFunctionData ACCESSORS(WasmExportedFunctionData, wrapper_code, Code, kWrapperCodeOffset) ACCESSORS(WasmExportedFunctionData, instance, WasmInstanceObject, @@ -220,7 +225,7 @@ SMI_ACCESSORS(WasmExportedFunctionData, function_index, kFunctionIndexOffset) // WasmDebugInfo ACCESSORS(WasmDebugInfo, wasm_instance, WasmInstanceObject, kInstanceOffset) ACCESSORS(WasmDebugInfo, interpreter_handle, Object, kInterpreterHandleOffset) -ACCESSORS(WasmDebugInfo, interpreted_functions, Object, +ACCESSORS(WasmDebugInfo, interpreted_functions, FixedArray, kInterpretedFunctionsOffset) OPTIONAL_ACCESSORS(WasmDebugInfo, locals_names, FixedArray, kLocalsNamesOffset) OPTIONAL_ACCESSORS(WasmDebugInfo, c_wasm_entries, FixedArray, |