1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
// Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0
#[derive(Default, Clone)]
pub struct InterpreterSettings {
/// skip expression checking
pub no_expr_check: bool,
/// dump stepwise bytecode
pub verbose_stepwise: bool,
/// dump bytecode trace
pub verbose_bytecode: bool,
/// dump expression trace
pub verbose_expression: bool,
}
impl InterpreterSettings {
pub fn verbose_default() -> Self {
Self {
verbose_stepwise: true,
verbose_bytecode: true,
verbose_expression: true,
..Default::default()
}
}
}