@@ -626,7 +626,7 @@ export class Module {
626
626
offset : Index = 0 ,
627
627
align : Index = bytes // naturally aligned by default
628
628
) : ExpressionRef {
629
- return binaryen . _BinaryenLoad ( this . ref , bytes , signed ? 1 : 0 , offset , align , type , ptr ) ;
629
+ return binaryen . _BinaryenLoad ( this . ref , bytes , signed , offset , align , type , ptr ) ;
630
630
}
631
631
632
632
store (
@@ -1797,7 +1797,7 @@ export class Module {
1797
1797
)
1798
1798
: binaryen . _BinaryenLoad ( this . ref ,
1799
1799
binaryen . _BinaryenLoadGetBytes ( expr ) ,
1800
- binaryen . _BinaryenLoadIsSigned ( expr ) ? 1 : 0 ,
1800
+ binaryen . _BinaryenLoadIsSigned ( expr ) ,
1801
1801
binaryen . _BinaryenLoadGetOffset ( expr ) ,
1802
1802
binaryen . _BinaryenLoadGetAlign ( expr ) ,
1803
1803
binaryen . _BinaryenExpressionGetType ( expr ) ,
@@ -2013,8 +2013,8 @@ export function getBlockChildCount(expr: ExpressionRef): Index {
2013
2013
return binaryen . _BinaryenBlockGetNumChildren ( expr ) ;
2014
2014
}
2015
2015
2016
- export function getBlockChild ( expr : ExpressionRef , index : Index ) : ExpressionRef {
2017
- return binaryen . _BinaryenBlockGetChild ( expr , index ) ;
2016
+ export function getBlockChildAt ( expr : ExpressionRef , index : Index ) : ExpressionRef {
2017
+ return binaryen . _BinaryenBlockGetChildAt ( expr , index ) ;
2018
2018
}
2019
2019
2020
2020
export function getIfCondition ( expr : ExpressionRef ) : ExpressionRef {
@@ -2073,8 +2073,8 @@ export function getCallOperandCount(expr: ExpressionRef): i32 {
2073
2073
return binaryen . _BinaryenCallGetNumOperands ( expr ) ;
2074
2074
}
2075
2075
2076
- export function getCallOperand ( expr : ExpressionRef , index : Index ) : ExpressionRef {
2077
- return binaryen . _BinaryenCallGetOperand ( expr , index ) ;
2076
+ export function getCallOperandAt ( expr : ExpressionRef , index : Index ) : ExpressionRef {
2077
+ return binaryen . _BinaryenCallGetOperandAt ( expr , index ) ;
2078
2078
}
2079
2079
2080
2080
export function getHostOp ( expr : ExpressionRef ) : ExpressionRef {
@@ -2085,8 +2085,8 @@ export function getHostOperandCount(expr: ExpressionRef): Index {
2085
2085
return binaryen . _BinaryenHostGetNumOperands ( expr ) ;
2086
2086
}
2087
2087
2088
- export function getHostOperand ( expr : ExpressionRef , index : Index ) : ExpressionRef {
2089
- return binaryen . _BinaryenHostGetOperand ( expr , index ) ;
2088
+ export function getHostOperandAt ( expr : ExpressionRef , index : Index ) : ExpressionRef {
2089
+ return binaryen . _BinaryenHostGetOperandAt ( expr , index ) ;
2090
2090
}
2091
2091
2092
2092
export function getHostName ( expr : ExpressionRef ) : string | null {
@@ -2495,7 +2495,7 @@ export function needsExplicitUnreachable(expr: ExpressionRef): bool {
2495
2495
let numChildren = binaryen . _BinaryenBlockGetNumChildren ( expr ) ; // last child needs unreachable
2496
2496
return (
2497
2497
numChildren > 0 &&
2498
- needsExplicitUnreachable ( binaryen . _BinaryenBlockGetChild ( expr , numChildren - 1 ) )
2498
+ needsExplicitUnreachable ( binaryen . _BinaryenBlockGetChildAt ( expr , numChildren - 1 ) )
2499
2499
) ;
2500
2500
}
2501
2501
}
@@ -2512,7 +2512,7 @@ export function traverse<T>(
2512
2512
switch ( getExpressionId ( expr ) ) {
2513
2513
case ExpressionId . Block : {
2514
2514
for ( let i : Index = 0 , n = binaryen . _BinaryenBlockGetNumChildren ( expr ) ; i < n ; ++ i ) {
2515
- visit ( binaryen . _BinaryenBlockGetChild ( expr , i ) , data ) ;
2515
+ visit ( binaryen . _BinaryenBlockGetChildAt ( expr , i ) , data ) ;
2516
2516
}
2517
2517
break ;
2518
2518
}
@@ -2538,13 +2538,13 @@ export function traverse<T>(
2538
2538
}
2539
2539
case ExpressionId . Call : {
2540
2540
for ( let i : Index = 0 , n = binaryen . _BinaryenCallGetNumOperands ( expr ) ; i < n ; ++ i ) {
2541
- visit ( binaryen . _BinaryenCallGetOperand ( expr , i ) , data ) ;
2541
+ visit ( binaryen . _BinaryenCallGetOperandAt ( expr , i ) , data ) ;
2542
2542
}
2543
2543
break ;
2544
2544
}
2545
2545
case ExpressionId . CallIndirect : {
2546
2546
for ( let i : Index = 0 , n = binaryen . _BinaryenCallIndirectGetNumOperands ( expr ) ; i < n ; ++ i ) {
2547
- visit ( binaryen . _BinaryenCallIndirectGetOperand ( expr , i ) , data ) ;
2547
+ visit ( binaryen . _BinaryenCallIndirectGetOperandAt ( expr , i ) , data ) ;
2548
2548
}
2549
2549
break ;
2550
2550
}
@@ -2599,7 +2599,7 @@ export function traverse<T>(
2599
2599
}
2600
2600
case ExpressionId . Host : {
2601
2601
for ( let i : Index = 0 , n = binaryen . _BinaryenHostGetNumOperands ( expr ) ; i < n ; ++ i ) {
2602
- visit ( binaryen . _BinaryenHostGetOperand ( expr , i ) , data ) ;
2602
+ visit ( binaryen . _BinaryenHostGetOperandAt ( expr , i ) , data ) ;
2603
2603
}
2604
2604
break ;
2605
2605
}
@@ -2703,7 +2703,7 @@ export function traverse<T>(
2703
2703
}
2704
2704
case ExpressionId . Throw : {
2705
2705
for ( let i : Index = 0 , n = binaryen . _BinaryenThrowGetNumOperands ( expr ) ; i < n ; ++ i ) {
2706
- visit ( binaryen . _BinaryenThrowGetOperand ( expr , i ) , data ) ;
2706
+ visit ( binaryen . _BinaryenThrowGetOperandAt ( expr , i ) , data ) ;
2707
2707
}
2708
2708
break ;
2709
2709
}
@@ -2717,7 +2717,7 @@ export function traverse<T>(
2717
2717
}
2718
2718
case ExpressionId . TupleMake : {
2719
2719
for ( let i : Index = 0 , n = binaryen . _BinaryenTupleMakeGetNumOperands ( expr ) ; i < n ; ++ i ) {
2720
- visit ( binaryen . _BinaryenTupleMakeGetOperand ( expr , i ) , data ) ;
2720
+ visit ( binaryen . _BinaryenTupleMakeGetOperandAt ( expr , i ) , data ) ;
2721
2721
}
2722
2722
break ;
2723
2723
}
0 commit comments