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

Unified Diff: src/wasm/wasm-module.h

Issue 2405293002: [wasm] Add stack checks to loops. (Closed)
Patch Set: Created 4 years, 2 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
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;
}
« src/wasm/ast-decoder.cc ('K') | « src/wasm/ast-decoder.cc ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698