Rename visit.rs
to base.rs
This commit is contained in:
parent
822465cd70
commit
d5b327cf64
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use wasm_smith::Module;
|
use wasm_smith::Module;
|
||||||
|
|
||||||
use wasm::writer::{luajit::LuaJIT, visit::Transpiler};
|
use wasm::writer::{base::Transpiler, luajit::LuaJIT};
|
||||||
|
|
||||||
// We are not interested in parity_wasm errors.
|
// We are not interested in parity_wasm errors.
|
||||||
// Only 1 edition should need to be tested too.
|
// Only 1 edition should need to be tested too.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
use parity_wasm::elements::Module as WasmModule;
|
use parity_wasm::elements::Module as WasmModule;
|
||||||
use wasm_smith::Module as SmModule;
|
use wasm_smith::Module as SmModule;
|
||||||
|
|
||||||
use wasm::writer::{luajit::LuaJIT, visit::Transpiler};
|
use wasm::writer::{base::Transpiler, luajit::LuaJIT};
|
||||||
|
|
||||||
fn fuzz_transformer(wasm: &WasmModule) {
|
fn fuzz_transformer(wasm: &WasmModule) {
|
||||||
let trans = LuaJIT::new(wasm);
|
let trans = LuaJIT::new(wasm);
|
||||||
|
@ -5,7 +5,7 @@ use std::io::Result;
|
|||||||
use parity_wasm::elements::Module as WasmModule;
|
use parity_wasm::elements::Module as WasmModule;
|
||||||
use wasm_smith::Module as SmModule;
|
use wasm_smith::Module as SmModule;
|
||||||
|
|
||||||
use wasm::writer::{luajit::LuaJIT, visit::Transpiler};
|
use wasm::writer::{base::Transpiler, luajit::LuaJIT};
|
||||||
|
|
||||||
fn fuzz_writer(wasm: &WasmModule) -> Result<()> {
|
fn fuzz_writer(wasm: &WasmModule) -> Result<()> {
|
||||||
let trans = LuaJIT::new(wasm);
|
let trans = LuaJIT::new(wasm);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use parity_wasm::{deserialize_file, elements::Module};
|
use parity_wasm::{deserialize_file, elements::Module};
|
||||||
use writer::{luajit::LuaJIT, luau::Luau, visit::Transpiler};
|
use writer::{base::Transpiler, luajit::LuaJIT, luau::Luau};
|
||||||
|
|
||||||
mod analyzer;
|
mod analyzer;
|
||||||
mod ast;
|
mod ast;
|
||||||
|
@ -15,11 +15,11 @@ use crate::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
|
base::{Transpiler, Writer},
|
||||||
shared::{
|
shared::{
|
||||||
aux_internal_index, write_f32, write_f64, write_func_name, write_memory_init,
|
aux_internal_index, write_f32, write_f64, write_func_name, write_memory_init,
|
||||||
write_parameter_list, write_result_list, write_table_init, write_variable_list,
|
write_parameter_list, write_result_list, write_table_init, write_variable_list,
|
||||||
},
|
},
|
||||||
visit::{Transpiler, Writer},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fn write_expression(code: &[Instruction], w: Writer) -> Result<()> {
|
fn write_expression(code: &[Instruction], w: Writer) -> Result<()> {
|
||||||
|
@ -15,11 +15,11 @@ use crate::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
|
base::{Transpiler, Writer},
|
||||||
shared::{
|
shared::{
|
||||||
aux_internal_index, write_f32, write_f64, write_func_name, write_memory_init,
|
aux_internal_index, write_f32, write_f64, write_func_name, write_memory_init,
|
||||||
write_parameter_list, write_result_list, write_table_init, write_variable_list,
|
write_parameter_list, write_result_list, write_table_init, write_variable_list,
|
||||||
},
|
},
|
||||||
visit::{Transpiler, Writer},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fn write_expression(code: &[Instruction], w: Writer) -> Result<()> {
|
fn write_expression(code: &[Instruction], w: Writer) -> Result<()> {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
pub mod base;
|
||||||
pub mod luajit;
|
pub mod luajit;
|
||||||
pub mod luau;
|
pub mod luau;
|
||||||
mod shared;
|
mod shared;
|
||||||
pub mod visit;
|
|
||||||
|
@ -4,7 +4,7 @@ use parity_wasm::elements::{Internal, Module, NameSection, ResizableLimits};
|
|||||||
|
|
||||||
use crate::ast::node::Function;
|
use crate::ast::node::Function;
|
||||||
|
|
||||||
use super::visit::Writer;
|
use super::base::Writer;
|
||||||
|
|
||||||
pub fn aux_internal_index(internal: Internal) -> u32 {
|
pub fn aux_internal_index(internal: Internal) -> u32 {
|
||||||
match internal {
|
match internal {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user