mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-10-20 18:56:22 +00:00
unnecessary checks for init_expr removed ( http://webassembly.org/docs/modules/#initializer-expression )
This commit is contained in:
1 parent
da265f3671
commit
93647ec3df
1 file changed
-14
@@ -87,20 +87,6 @@ pub fn is_deterministic(module: elements::Module) -> bool {
|
||||
}
|
||||
}
|
||||
},
|
||||
Section::Global(ref global) => {
|
||||
for entry in global.entries() {
|
||||
if have_nondeterministic_opcodes(entry.init_expr().code()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
Section::Element(ref element) => {
|
||||
for entry in element.entries() {
|
||||
if have_nondeterministic_opcodes(entry.offset().code()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => continue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user