diff --git a/runtime/vm/compiler/backend/il.cc b/runtime/vm/compiler/backend/il.cc index 91e54d8e796..66f1b276b0e 100644 --- a/runtime/vm/compiler/backend/il.cc +++ b/runtime/vm/compiler/backend/il.cc @@ -3650,6 +3650,13 @@ LocationSummary* FunctionEntryInstr::MakeLocationSummary( } void FunctionEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { +#if defined(TARGET_ARCH_X64) + // Ensure the start of the monomorphic checked entry is 2-byte aligned (see + // also Assembler::MonomorphicCheckedEntry()). + if (__ CodeSize() % 2 == 1) { + __ nop(); + } +#endif __ Bind(compiler->GetJumpLabel(this)); // In the AOT compiler we want to reduce code size, so generate no diff --git a/tests/language_2/language_2_kernel.status b/tests/language_2/language_2_kernel.status index c73bae073ca..44cc68f4b05 100644 --- a/tests/language_2/language_2_kernel.status +++ b/tests/language_2/language_2_kernel.status @@ -240,9 +240,6 @@ vm/debug_break_enabled_vm_test/01: CompileTimeError # KernelVM bug: Bad test usi vm/debug_break_enabled_vm_test/none: CompileTimeError # KernelVM bug: Bad test using extended break syntax. vm/regress_27201_test: CompileTimeError # Fasta/KernelVM bug: Deferred loading kernel issue 30273. -[ $arch == x64 && $compiler == dartkp && $mode == debug ] -statement_test: Crash # Issue 35419 - [ $builder_tag == obfuscated && $compiler == dartkp ] generic_function_dcall_test/01: SkipByDesign # Prints type names invocation_mirror_test: RuntimeError # Issue 34911