diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/emscripten-exported.json | 122 | ||||
-rw-r--r-- | src/wasm.js | 7 |
2 files changed, 117 insertions, 12 deletions
diff --git a/src/emscripten-exported.json b/src/emscripten-exported.json index 28002175..549cf6b3 100644 --- a/src/emscripten-exported.json +++ b/src/emscripten-exported.json @@ -1,18 +1,100 @@ -[ +["_wasm_append_element", +"_wasm_append_module_field", +"_wasm_apply_names", +"_wasm_ast_format_error", +"_wasm_ast_lexer_get_allocator", +"_wasm_ast_lexer_get_source_line", +"_wasm_ast_lexer_lex", +"_wasm_ast_parser_error", +"_wasm_ast_parser_parse", "_wasm_check_assert_invalid", "_wasm_check_ast", +"_wasm_close_file_writer", "_wasm_close_mem_writer", "_wasm_default_assert_invalid_source_error_callback", +"_wasm_default_binary_error_callback", "_wasm_default_source_error_callback", "_wasm_destroy_ast_lexer", +"_wasm_destroy_block", +"_wasm_destroy_command", +"_wasm_destroy_command_vector_and_elements", +"_wasm_destroy_export", +"_wasm_destroy_expr", +"_wasm_destroy_expr_list", +"_wasm_destroy_func", +"_wasm_destroy_func_declaration", +"_wasm_destroy_func_fields", +"_wasm_destroy_func_signature", +"_wasm_destroy_func_type", +"_wasm_destroy_import", +"_wasm_destroy_interpreter_module", +"_wasm_destroy_interpreter_thread", +"_wasm_destroy_memory", +"_wasm_destroy_module", +"_wasm_destroy_output_buffer", "_wasm_destroy_script", +"_wasm_destroy_segment", +"_wasm_destroy_segment_vector_and_elements", "_wasm_destroy_stack_allocator", -"_wasm_destroy_output_buffer", +"_wasm_destroy_string_slice", +"_wasm_destroy_var", +"_wasm_destroy_var_vector_and_elements", +"_wasm_disassemble_module", +"_wasm_ensure_capacity", +"_wasm_extend_elements", +"_wasm_generate_names", +"_wasm_get_export_by_name", +"_wasm_get_func_by_var", +"_wasm_get_func_index_by_var", +"_wasm_get_func_type_by_var", +"_wasm_get_func_type_index_by_var", +"_wasm_get_import_by_var", +"_wasm_get_import_index_by_var", +"_wasm_get_index_from_var", +"_wasm_get_interpreter_export_by_name", +"_wasm_get_interpreter_import_by_name", "_wasm_get_libc_allocator", +"_wasm_get_local_index_by_var", +"_wasm_get_opcode_alignment", +"_wasm_hash_entry_is_free", +"_wasm_init_file_stream_from_existing", +"_wasm_init_file_writer", +"_wasm_init_file_writer_existing", +"_wasm_init_interpreter_thread", "_wasm_init_mem_writer", -"_wasm_init_stream", "_wasm_init_stack_allocator", +"_wasm_init_stderr_stream", +"_wasm_init_stdout_stream", +"_wasm_init_stream", +"_wasm_insert_binding", +"_wasm_is_naturally_aligned", +"_wasm_make_type_binding_reverse_mapping", +"_wasm_move_data", "_wasm_new_ast_buffer_lexer", +"_wasm_new_ast_file_lexer", +"_wasm_new_binary_expr", +"_wasm_new_block_expr", +"_wasm_new_br_expr", +"_wasm_new_br_if_expr", +"_wasm_new_br_table_expr", +"_wasm_new_call_expr", +"_wasm_new_call_import_expr", +"_wasm_new_call_indirect_expr", +"_wasm_new_compare_expr", +"_wasm_new_const_expr", +"_wasm_new_convert_expr", +"_wasm_new_empty_expr", +"_wasm_new_get_local_expr", +"_wasm_new_grow_memory_expr", +"_wasm_new_if_else_expr", +"_wasm_new_if_expr", +"_wasm_new_load_expr", +"_wasm_new_loop_expr", +"_wasm_new_return_expr", +"_wasm_new_select_expr", +"_wasm_new_set_local_expr", +"_wasm_new_store_expr", +"_wasm_new_unary_expr", "_wasm_offsetof_allocator_alloc", "_wasm_offsetof_allocator_destroy", "_wasm_offsetof_allocator_free", @@ -49,6 +131,21 @@ "_wasm_offsetof_writer_move_data", "_wasm_offsetof_writer_write_data", "_wasm_parse_ast", +"_wasm_parse_double", +"_wasm_parse_float", +"_wasm_parse_hexdigit", +"_wasm_parse_int32", +"_wasm_parse_int64", +"_wasm_parse_options", +"_wasm_parse_uint64", +"_wasm_print_help", +"_wasm_push_thread_value", +"_wasm_read_binary", +"_wasm_read_binary_ast", +"_wasm_read_binary_interpreter", +"_wasm_read_file", +"_wasm_resize_vector", +"_wasm_run_interpreter", "_wasm_sizeof_allocator", "_wasm_sizeof_binary_error_handler", "_wasm_sizeof_location", @@ -61,6 +158,21 @@ "_wasm_sizeof_string_slice", "_wasm_sizeof_write_binary_options", "_wasm_sizeof_writer", +"_wasm_steal_mem_writer_output_buffer", +"_wasm_string_slices_are_equal", +"_wasm_trace_pc", +"_wasm_visit_func", +"_wasm_write_ast", +"_wasm_write_binary_module", "_wasm_write_binary_script", -"_wasm_write_binary_spec_script" -] +"_wasm_write_binary_spec_script", +"_wasm_write_data", +"_wasm_write_data_at", +"_wasm_write_double_hex", +"_wasm_write_float_hex", +"_wasm_write_memory_dump", +"_wasm_write_output_buffer_to_file", +"_wasm_write_u32", +"_wasm_write_u64", +"_wasm_write_u8", +"_wasm_writef"]
\ No newline at end of file diff --git a/src/wasm.js b/src/wasm.js index 38ca2f8f..fa2d732a 100644 --- a/src/wasm.js +++ b/src/wasm.js @@ -485,12 +485,6 @@ var checkAst = function(lexer, script, errorHandler) { throw "checkAst failed"; }; -var markUsedBlocks = function(allocator, script) { - var result = Module._wasm_mark_used_blocks(allocator.$addr, script.$addr); - if (result != OK) - throw "markUsedBlocks failed"; -}; - var writeBinaryScript = function(allocator, writer, script, options) { var result = Module._wasm_write_binary_script(allocator.$addr, writer.$addr, script.$addr, options.$addr); @@ -523,7 +517,6 @@ wasm = { Writer: Writer, checkAst: checkAst, - markUsedBlocks: markUsedBlocks, parseAst: parseAst, writeBinaryScript: writeBinaryScript, }; |