mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-26 07:49:28 +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 callInterface;
|
||||||
|
|
||||||
private FunctionName instanceOf;
|
private SyntheticFunctionName instanceOf;
|
||||||
|
|
||||||
private FunctionName cast;
|
private SyntheticFunctionName cast;
|
||||||
|
|
||||||
private int catchTypeCode;
|
private int catchTypeCode;
|
||||||
|
|
||||||
@ -197,8 +197,8 @@ public class WasmOptions {
|
|||||||
* @return the name
|
* @return the name
|
||||||
*/
|
*/
|
||||||
@Nonnull
|
@Nonnull
|
||||||
FunctionName getInstanceOf() {
|
SyntheticFunctionName getInstanceOf() {
|
||||||
FunctionName name = instanceOf;
|
SyntheticFunctionName name = instanceOf;
|
||||||
if( name == null ) {
|
if( name == null ) {
|
||||||
instanceOf = name = types.createInstanceOf();
|
instanceOf = name = types.createInstanceOf();
|
||||||
functions.markAsNeeded( name );
|
functions.markAsNeeded( name );
|
||||||
@ -214,8 +214,8 @@ public class WasmOptions {
|
|||||||
* @return the name
|
* @return the name
|
||||||
*/
|
*/
|
||||||
@Nonnull
|
@Nonnull
|
||||||
FunctionName getCast() {
|
SyntheticFunctionName getCast() {
|
||||||
FunctionName name = cast;
|
SyntheticFunctionName name = cast;
|
||||||
if( name == null ) {
|
if( name == null ) {
|
||||||
cast = name = types.createCast();
|
cast = name = types.createCast();
|
||||||
functions.markAsNeeded( name );
|
functions.markAsNeeded( name );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user