Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: src/objects.h

Issue 2964943002: [wasm] Introduce instance types for WebAssembly.* objects. (Closed)
Patch Set: Address rossberg comments. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 7e022a71916db308b091573cc878462dbc09ec0a..0946746e18d96072c9c2b8d6dc993d5c9efcfaae 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -73,6 +73,10 @@
// - JSDate
// - JSMessageObject
// - JSModuleNamespace
+// - WasmInstanceObject
+// - WasmMemoryObject
+// - WasmModuleObject
+// - WasmTableObject
// - JSProxy
// - FixedArrayBase
// - ByteArray
@@ -99,6 +103,8 @@
// - ModuleInfo
// - ScriptContextTable
// - WeakFixedArray
+// - WasmSharedModuleData
+// - WasmCompiledModule
// - FixedDoubleArray
// - Name
// - String
@@ -445,6 +451,10 @@ const int kStubMinorKeyBits = kSmiValueSize - kStubMajorKeyBits - 1;
V(JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE) \
V(JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE) \
\
+ V(WASM_INSTANCE_TYPE) \
+ V(WASM_MEMORY_TYPE) \
+ V(WASM_MODULE_TYPE) \
+ V(WASM_TABLE_TYPE) \
V(JS_BOUND_FUNCTION_TYPE) \
V(JS_FUNCTION_TYPE)
@@ -798,6 +808,10 @@ enum InstanceType {
JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE,
JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE,
+ WASM_INSTANCE_TYPE,
+ WASM_MEMORY_TYPE,
+ WASM_MODULE_TYPE,
+ WASM_TABLE_TYPE,
JS_BOUND_FUNCTION_TYPE,
JS_FUNCTION_TYPE, // LAST_JS_OBJECT_TYPE, LAST_JS_RECEIVER_TYPE
@@ -1053,6 +1067,10 @@ template <class C> inline bool Is(Object* obj);
V(JSMapIterator) \
V(JSMessageObject) \
V(JSModuleNamespace) \
+ V(WasmInstanceObject) \
+ V(WasmMemoryObject) \
+ V(WasmModuleObject) \
+ V(WasmTableObject) \
V(JSObject) \
V(JSPromise) \
V(JSPromiseCapability) \
@@ -2389,7 +2407,7 @@ class JSObject: public JSReceiver {
// Get the header size for a JSObject. Used to compute the index of
// embedder fields as well as the number of embedder fields.
- static inline int GetHeaderSize(InstanceType instance_type);
+ static int GetHeaderSize(InstanceType instance_type);
inline int GetHeaderSize();
static inline int GetEmbedderFieldCount(const Map* map);
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698