[dart2wasm] Simplify type test function names

Instead of

    <obj> is Class(JSUint16ArrayImpl)

generate

    <obj> is JSUint16ArrayImpl

in type test functions.

Change-Id: I98e294291f91d3a117052e42b774a907c95ad6b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/374001
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
This commit is contained in:
Ömer Sinan Ağacan 2024-07-02 10:23:18 +00:00 committed by Commit Queue
parent 586c5f3b54
commit 6535a017ae

View file

@ -559,7 +559,7 @@ class Types {
[argumentType],
[w.NumType.i32],
),
'<obj> is ${testedAgainstType.classNode}');
'<obj> is ${testedAgainstType.classNode.name}');
final b = function.body;
b.local_get(b.locals[0]);
@ -623,7 +623,7 @@ class Types {
[argumentType],
[returnType],
),
'<obj> as ${testedAgainstType.classNode}');
'<obj> as ${testedAgainstType.classNode.name}');
final b = function.body;
w.Label asCheckBlock = b.block();