Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Horcrux7 committed Mar 31, 2019
1 parent accf918 commit e5036cc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_ADD;
break;
default:
}
break;
case sub:
Expand All @@ -514,6 +515,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_SUB;
break;
default:
}
break;
case neg:
Expand All @@ -524,6 +526,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_NEG;
break;
default:
}
break;
case mul:
Expand All @@ -540,6 +543,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_MUL;
break;
default:
}
break;
case div:
Expand All @@ -556,6 +560,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_DIV;
break;
default:
}
break;
case rem:
Expand All @@ -566,6 +571,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case i64:
op = I64_REM_S;
break;
default:
}
break;
case and:
Expand All @@ -576,6 +582,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case i64:
op = I64_AND;
break;
default:
}
break;
case or:
Expand All @@ -586,6 +593,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case i64:
op = I64_OR;
break;
default:
}
break;
case xor:
Expand All @@ -596,6 +604,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case i64:
op = I64_XOR;
break;
default:
}
break;
case shl:
Expand All @@ -606,6 +615,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case i64:
op = I64_SHL;
break;
default:
}
break;
case shr_s:
Expand All @@ -616,6 +626,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case i64:
op = I64_SHR_S;
break;
default:
}
break;
case shr_u:
Expand All @@ -626,6 +637,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case i64:
op = I64_SHR_U;
break;
default:
}
break;
case eq:
Expand All @@ -642,6 +654,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_EQ;
break;
default:
}
break;
case ne:
Expand All @@ -658,6 +671,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_NE;
break;
default:
}
break;
case gt:
Expand All @@ -674,6 +688,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_GT;
break;
default:
}
break;
case lt:
Expand All @@ -690,6 +705,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_LT;
break;
default:
}
break;
case le:
Expand All @@ -706,6 +722,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_LE;
break;
default:
}
break;
case ge:
Expand All @@ -722,6 +739,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_GE;
break;
default:
}
break;
case max:
Expand All @@ -732,6 +750,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
case f64:
op = F64_MAX;
break;
default:
}
break;
case ifnull:
Expand All @@ -748,6 +767,7 @@ protected void writeNumericOperator( NumericOperator numOp, @Nullable ValueType
codeStream.writeOpCode( REF_EQ );
op = I32_EQZ;
break;
default:
}
if( op == 0 ) {
throw new Error( valueType + "." + numOp );
Expand Down

0 comments on commit e5036cc

Please sign in to comment.