Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed May 12, 2023
1 parent 400127d commit 3a8b2f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions src/mono/mono/mini/interp/transform-simd.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ static gboolean
emit_sri_vector128 (TransformData *td, MonoMethod *cmethod, MonoMethodSignature *csignature)
{
int id = lookup_intrins (sri_vector128_methods, sizeof (sri_vector128_methods), cmethod);
int vector_size = -1;
if (id == -1)
return FALSE;

Expand All @@ -168,9 +167,8 @@ emit_sri_vector128 (TransformData *td, MonoMethod *cmethod, MonoMethodSignature
MonoTypeEnum atype = arg_type->type;
if (atype == MONO_TYPE_BOOLEAN)
return FALSE;
vector_size = mono_class_value_size (vector_klass, NULL);
int vector_size = mono_class_value_size (vector_klass, NULL);
int arg_size = mono_class_value_size (mono_class_from_mono_type_internal (arg_type), NULL);
g_assert (arg_size > -1);
g_assert (vector_size == SIZEOF_V128);

int scalar_arg = -1;
Expand All @@ -179,8 +177,6 @@ emit_sri_vector128 (TransformData *td, MonoMethod *cmethod, MonoMethodSignature
scalar_arg = i;
}

g_assert (scalar_arg != -3274);

switch (id) {
case SN_AndNot:
simd_opcode = MINT_SIMD_INTRINS_P_PP;
Expand Down
2 changes: 0 additions & 2 deletions src/mono/wasm/runtime/jiterpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ export const disabledOpcodes: Array<MintOpcode> = [
// Having any items in this list will add some overhead to the jitting of *all* traces
// These names can be substrings and instrumentation will happen if the substring is found in the full name
export const instrumentedMethodNames: Array<string> = [
"WidenFourAsciiBytesToUtf16AndWriteToBuffer",
"ToBase64CharsLarge"
];

export class InstrumentedTraceState {
Expand Down

0 comments on commit 3a8b2f6

Please sign in to comment.