Progress on List.set in Cranelift

This commit is contained in:
Richard Feldman 2020-03-24 02:56:09 -04:00
parent 97da88b22f
commit bf129a7299
2 changed files with 46 additions and 27 deletions

View file

@ -1259,7 +1259,6 @@ fn bounds_check_comparison<'ctx>(
elem_index: IntValue<'ctx>,
len: IntValue<'ctx>,
) -> IntValue<'ctx> {
//
// Note: Check for index < length as the "true" condition,
// to avoid misprediction. (In practice this should usually pass,
// and CPUs generally default to predicting that a forward jump