summaryrefslogtreecommitdiff
path: root/chromium/v8/src/wasm/wasm-objects.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/wasm/wasm-objects.h')
-rw-r--r--chromium/v8/src/wasm/wasm-objects.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/chromium/v8/src/wasm/wasm-objects.h b/chromium/v8/src/wasm/wasm-objects.h
index c526a909b1e..b198cf27551 100644
--- a/chromium/v8/src/wasm/wasm-objects.h
+++ b/chromium/v8/src/wasm/wasm-objects.h
@@ -44,6 +44,7 @@ class WasmInstanceWrapper;
// Representation of a WebAssembly.Module JavaScript-level object.
class WasmModuleObject : public JSObject {
public:
+ // If a second field is added, we need a kWrapperTracerHeader field as well.
// TODO(titzer): add the brand as an internal field instead of a property.
enum Fields { kCompiledModule, kFieldCount };
@@ -58,8 +59,15 @@ class WasmModuleObject : public JSObject {
// Representation of a WebAssembly.Table JavaScript-level object.
class WasmTableObject : public JSObject {
public:
+ // The 0-th field is used by the Blink Wrapper Tracer.
// TODO(titzer): add the brand as an internal field instead of a property.
- enum Fields { kFunctions, kMaximum, kDispatchTables, kFieldCount };
+ enum Fields {
+ kWrapperTracerHeader,
+ kFunctions,
+ kMaximum,
+ kDispatchTables,
+ kFieldCount
+ };
DECLARE_CASTS(WasmTableObject);
DECLARE_ACCESSORS(functions, FixedArray);
@@ -83,8 +91,15 @@ class WasmTableObject : public JSObject {
// Representation of a WebAssembly.Memory JavaScript-level object.
class WasmMemoryObject : public JSObject {
public:
+ // The 0-th field is used by the Blink Wrapper Tracer.
// TODO(titzer): add the brand as an internal field instead of a property.
- enum Fields : uint8_t { kArrayBuffer, kMaximum, kInstancesLink, kFieldCount };
+ enum Fields : uint8_t {
+ kWrapperTracerHeader,
+ kArrayBuffer,
+ kMaximum,
+ kInstancesLink,
+ kFieldCount
+ };
DECLARE_CASTS(WasmMemoryObject);
DECLARE_ACCESSORS(buffer, JSArrayBuffer);
@@ -107,8 +122,10 @@ class WasmMemoryObject : public JSObject {
// Representation of a WebAssembly.Instance JavaScript-level object.
class WasmInstanceObject : public JSObject {
public:
+ // The 0-th field is used by the Blink Wrapper Tracer.
// TODO(titzer): add the brand as an internal field instead of a property.
enum Fields {
+ kWrapperTracerHeader,
kCompiledModule,
kMemoryObject,
kMemoryArrayBuffer,
@@ -142,7 +159,8 @@ class WasmInstanceObject : public JSObject {
// Representation of an exported WASM function.
class WasmExportedFunction : public JSFunction {
public:
- enum Fields { kInstance, kIndex, kFieldCount };
+ // The 0-th field is used by the Blink Wrapper Tracer.
+ enum Fields { kWrapperTracerHeader, kInstance, kIndex, kFieldCount };
DECLARE_CASTS(WasmExportedFunction);
@@ -158,7 +176,9 @@ class WasmExportedFunction : public JSFunction {
// Information shared by all WasmCompiledModule objects for the same module.
class WasmSharedModuleData : public FixedArray {
+ // The 0-th field is used by the Blink Wrapper Tracer.
enum Fields {
+ kWrapperTracerHeader,
kModuleWrapper,
kModuleBytes,
kScript,
@@ -408,7 +428,9 @@ class WasmCompiledModule : public FixedArray {
class WasmDebugInfo : public FixedArray {
public:
+ // The 0-th field is used by the Blink Wrapper Tracer.
enum Fields {
+ kWrapperTracerHeader,
kInstance,
kInterpreterHandle,
kInterpretedFunctions,