mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
returns type SyntheticFunctionName for instanceof and cast function
This commit is contained in:
parent
0109c9e2af
commit
63c7d09cdc
@ -59,9 +59,9 @@ public class WasmOptions {
|
||||
|
||||
private FunctionName callInterface;
|
||||
|
||||
private FunctionName instanceOf;
|
||||
private SyntheticFunctionName instanceOf;
|
||||
|
||||
private FunctionName cast;
|
||||
private SyntheticFunctionName cast;
|
||||
|
||||
private int catchTypeCode;
|
||||
|
||||
@ -197,8 +197,8 @@ public class WasmOptions {
|
||||
* @return the name
|
||||
*/
|
||||
@Nonnull
|
||||
FunctionName getInstanceOf() {
|
||||
FunctionName name = instanceOf;
|
||||
SyntheticFunctionName getInstanceOf() {
|
||||
SyntheticFunctionName name = instanceOf;
|
||||
if( name == null ) {
|
||||
instanceOf = name = types.createInstanceOf();
|
||||
functions.markAsNeeded( name );
|
||||
@ -214,8 +214,8 @@ public class WasmOptions {
|
||||
* @return the name
|
||||
*/
|
||||
@Nonnull
|
||||
FunctionName getCast() {
|
||||
FunctionName name = cast;
|
||||
SyntheticFunctionName getCast() {
|
||||
SyntheticFunctionName name = cast;
|
||||
if( name == null ) {
|
||||
cast = name = types.createCast();
|
||||
functions.markAsNeeded( name );
|
||||
|
Loading…
x
Reference in New Issue
Block a user