Index: src/wasm/wasm-module.h |
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
index 466b15ba6735eb0e89a796dc36fe9248643e9eef..60eeb8afe0d71a9ab74839559715cb109a34079d 100644 |
--- a/src/wasm/wasm-module.h |
+++ b/src/wasm/wasm-module.h |
@@ -50,6 +50,18 @@ enum WasmSectionCode { |
kNameSectionCode = 12, // Name section (encoded as a string) |
}; |
+// Internal constants for the layout of the module object. |
+enum WasmInstanceObjectFields { |
titzer
2016/10/11 18:48:54
Not sure why these internal fields need to be expo
ahaas
2016/10/12 18:03:58
I do not expose them anymore. Instead I make GetIn
|
+ kWasmCompiledModule = 0, |
+ kWasmModuleFunctionTable, |
+ kWasmModuleCodeTable, |
+ kWasmMemObject, |
+ kWasmMemArrayBuffer, |
+ kWasmGlobalsArrayBuffer, |
+ kWasmDebugInfo, |
+ kWasmModuleInternalFieldCount |
+}; |
+ |
inline bool IsValidSectionCode(uint8_t byte) { |
return kTypeSectionCode <= byte && byte <= kDataSectionCode; |
} |