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

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

Issue 2493823003: [wasm] Allocate a single script per wasm module (Closed)
Patch Set: rebase Created 4 years, 1 month 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/wasm/wasm-module.cc ('k') | test/inspector/debugger/wasm-stack.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-objects.h
diff --git a/src/wasm/wasm-objects.h b/src/wasm/wasm-objects.h
index d91bcc4fa075f68f23c1a37108b80f68f24165c5..f74661f6520e0069a7a662bfda7556e895af7e08 100644
--- a/src/wasm/wasm-objects.h
+++ b/src/wasm/wasm-objects.h
@@ -189,11 +189,13 @@ class WasmCompiledModule : public FixedArray {
#define CORE_WCM_PROPERTY_TABLE(MACRO) \
MACRO(OBJECT, FixedArray, code_table) \
MACRO(OBJECT, Foreign, module_wrapper) \
+ /* For debugging: */ \
MACRO(OBJECT, SeqOneByteString, module_bytes) \
- MACRO(OBJECT, Script, asm_js_script) \
+ MACRO(OBJECT, Script, script) \
+ MACRO(OBJECT, ByteArray, asm_js_offset_tables) \
+ /* End of debugging stuff */ \
MACRO(OBJECT, FixedArray, function_tables) \
MACRO(OBJECT, FixedArray, empty_function_tables) \
- MACRO(OBJECT, ByteArray, asm_js_offset_tables) \
MACRO(OBJECT, JSArrayBuffer, memory) \
MACRO(SMALL_NUMBER, uint32_t, min_mem_pages) \
MACRO(SMALL_NUMBER, uint32_t, max_mem_pages) \
@@ -251,6 +253,12 @@ class WasmCompiledModule : public FixedArray {
static void RecreateModuleWrapper(Isolate* isolate,
Handle<FixedArray> compiled_module);
+ // Extract a function name from the given wasm instance.
+ // Returns a null handle if the function is unnamed or the name is not a valid
+ // UTF-8 string.
+ static MaybeHandle<String> GetFunctionName(
+ Handle<WasmCompiledModule> compiled_module, uint32_t func_index);
+
private:
void InitId();
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | test/inspector/debugger/wasm-stack.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698