Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
rahxephon89 committed Dec 11, 2024
1 parent 40ab844 commit e2b02e2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions aptos-move/aptos-e2e-comparison-testing/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,15 @@ impl Execution {
let mut features = Features::fetch_config(&state).unwrap_or_default();
features.enable(FeatureFlag::VM_BINARY_FORMAT_V7);
features.enable(FeatureFlag::NATIVE_MEMORY_OPERATIONS);
// module_event_migration_enabled
// features.enable(FeatureFlag::ENABLE_LOADER_V2);
if v2_flag {
features.enable(FeatureFlag::FAKE_FEATURE_FOR_COMPARISON_TESTING);
}
state.set_features(features);
let features = Features::fetch_config(&state).unwrap();
println!("v2 flag:{}, enabled:{}", v2_flag, features.is_enabled(FeatureFlag::COIN_TO_FUNGIBLE_ASSET_MIGRATION));
println!("v2 flag:{}, enabled:{}", v2_flag, features.is_enabled(FeatureFlag::MODULE_EVENT_MIGRATION));

// We use executor only to get access to block executor and avoid some of
// the initializations, but ignore its internal state, i.e., FakeDataStore.
Expand Down
2 changes: 1 addition & 1 deletion aptos-move/aptos-e2e-comparison-testing/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async fn main() -> Result<()> {
} else {
PathBuf::from(".")
};
prepare_aptos_packages(input.join(APTOS_COMMONS)).await;
// prepare_aptos_packages(input.join(APTOS_COMMONS)).await;
let executor =
Execution::new(input, execution_mode.unwrap_or_default(), skip_ref_packages);
executor
Expand Down
6 changes: 3 additions & 3 deletions third_party/move/move-compiler-v2/src/experiments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub static EXPERIMENTS: Lazy<BTreeMap<String, Experiment>> = Lazy::new(|| {
Experiment {
name: Experiment::OPTIMIZE_WAITING_FOR_COMPARE_TESTS.to_string(),
description: "Turns on optimizations waiting for comparison testing".to_string(),
default: Given(true),
default: Given(false),
},
Experiment {
name: Experiment::CFG_SIMPLIFICATION.to_string(),
Expand Down Expand Up @@ -274,15 +274,15 @@ pub static EXPERIMENTS: Lazy<BTreeMap<String, Experiment>> = Lazy::new(|| {
Experiment {
name: Experiment::AVOID_STORE_IN_ASSIGNS.to_string(),
description: "Avoid storing to a local during assigns".to_string(),
default: Inherited(Experiment::OPTIMIZE_WAITING_FOR_COMPARE_TESTS.to_string()),
default: Given(true),
},
Experiment {
name: Experiment::RETAIN_TEMPS_FOR_ARGS.to_string(),
description:
"Create temps for each argument of a function call during stackless bytecode \
generation and retain them until file format bytecode generation"
.to_string(),
default: Inherited(Experiment::OPTIMIZE_WAITING_FOR_COMPARE_TESTS.to_string()),
default: Given(true),
},
];
experiments
Expand Down
2 changes: 1 addition & 1 deletion types/src/on_chain_config/aptos_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub enum FeatureFlag {
/// AIP-105 (https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-105.md)
NATIVE_MEMORY_OPERATIONS = 80,
ENABLE_LOADER_V2 = 81,
FAKE_FEATURE_FOR_COMPARISON_TESTING = 1000,
FAKE_FEATURE_FOR_COMPARISON_TESTING = 82,
}

impl FeatureFlag {
Expand Down

0 comments on commit e2b02e2

Please sign in to comment.