bool emulate_Brfalse() { var val1 = instructionEmulator.pop(); if (val1.isInt32()) { return(emulateBranch(1, Int32Value.compareFalse((Int32Value)val1))); } else if (val1.isInt64()) { return(emulateBranch(1, Int64Value.compareFalse((Int64Value)val1))); } else if (val1.isNull()) { return(emulateBranch(1, true)); } else if (val1.isObject() || val1.isString()) { return(emulateBranch(1, false)); } else { return(false); } }
bool emulate_Brfalse() { var val1 = instructionEmulator.pop(); if (val1.isInt32()) return emulateBranch(1, Int32Value.compareFalse((Int32Value)val1)); else if (val1.isInt64()) return emulateBranch(1, Int64Value.compareFalse((Int64Value)val1)); else if (val1.isNull()) return emulateBranch(1, true); else return false; }