Home | History | Annotate | Download | only in wasm

Lines Matching defs:module

46 // Constants for fixed-size elements within a module.
55 uint32_t name_offset; // offset in the module bytes of the name, if any.
56 uint32_t code_start_offset; // offset in the module bytes of code start.
57 uint32_t code_end_offset; // offset in the module bytes of code end.
70 uint32_t name_offset; // offset in the module bytes of the name, if any.
79 uint32_t source_offset; // start offset in the module bytes.
80 uint32_t source_size; // end offset in the module bytes.
84 // Static representation of a module.
90 const byte* module_start; // starting address for the module bytes.
91 const byte* module_end; // end address for the module bytes.
97 std::vector<WasmGlobal>* globals; // globals in this module.
98 std::vector<FunctionSig*>* signatures; // signatures in this module.
99 std::vector<WasmFunction>* functions; // functions in this module.
100 std::vector<WasmDataSegment>* data_segments; // data segments in this module.
106 // Get a pointer to a string stored in the module bytes representing a name.
113 // Checks the given offset range is contained within the module bytes.
119 // Creates a new instantiation of the module in the given isolate.
134 WasmModule* module;
140 bool asm_js; // true if the module originated from asm.js.
143 return module && index < module->globals->size();
146 return module && index < module->functions->size();
149 return module && index < module->signatures->size();
153 return module->globals->at(index).type;
157 return module->functions->at(index).sig;
161 return module->signatures->at(index);
164 return module ? module->function_table->size() : 0;
174 std::ostream& operator<<(std::ostream& os, const WasmModule& module);
181 // given encoded module.
186 // given decoded module.
187 int32_t CompileAndRunWasmModule(Isolate* isolate, WasmModule* module);