mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-05-06 17:07:59 +00:00
unnecessary checks for init_expr removed ( http://webassembly.org/docs/modules/#initializer-expression )
This commit is contained in:
@@ -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