@@ -1362,7 +1362,8 @@ void GraphBuilder::if_node(Value x, If::Condition cond, Value y, ValueStack* sta
13621362 bool is_bb = tsux->bci () < stream ()->cur_bci () || fsux->bci () < stream ()->cur_bci ();
13631363
13641364 bool subst_check = false ;
1365- if (EnableValhalla && (stream ()->cur_bc () == Bytecodes::_if_acmpeq || stream ()->cur_bc () == Bytecodes::_if_acmpne)) {
1365+ // EnableValhalla legacy
1366+ if (Arguments::enable_preview () && (stream ()->cur_bc () == Bytecodes::_if_acmpeq || stream ()->cur_bc () == Bytecodes::_if_acmpne)) {
13661367 ValueType* left_vt = x->type ();
13671368 ValueType* right_vt = y->type ();
13681369 if (left_vt->is_object ()) {
@@ -2566,7 +2567,8 @@ void GraphBuilder::monitorenter(Value x, int bci) {
25662567#endif
25672568 } else {
25682569 // We are compiling a monitorenter bytecode
2569- if (EnableValhalla) {
2570+ // EnableValhalla legacy
2571+ if (Arguments::enable_preview ()) {
25702572 ciType* obj_type = x->declared_type ();
25712573 if (obj_type == nullptr || obj_type->as_klass ()->can_be_inline_klass ()) {
25722574 // If we're (possibly) locking on an inline type, check for markWord::always_locked_pattern
@@ -4301,7 +4303,8 @@ bool GraphBuilder::try_inline_full(ciMethod* callee, bool holder_known, bool ign
43014303
43024304 // Check if we need a membar at the beginning of the java.lang.Object
43034305 // constructor to satisfy the memory model for strict fields.
4304- if (EnableValhalla && method ()->intrinsic_id () == vmIntrinsics::_Object_init) {
4306+ // EnableValhalla legacy
4307+ if (Arguments::enable_preview () && method ()->intrinsic_id () == vmIntrinsics::_Object_init) {
43054308 Value receiver = state ()->local_at (0 );
43064309 ciType* klass = receiver->exact_type ();
43074310 if (klass == nullptr ) {
0 commit comments