File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 3636
3737 # Reset this number to 0 on major V8 upgrades.
3838 # Increment by one for each non-official patch applied to deps/v8.
39- 'v8_embedder_string' : '-node.61 ' ,
39+ 'v8_embedder_string' : '-node.62 ' ,
4040
4141 ##### V8 defaults for Node.js #####
4242
Original file line number Diff line number Diff line change @@ -1426,10 +1426,15 @@ class RepresentationSelector {
14261426 Type right_feedback_type = TypeOf (node->InputAt (1 ));
14271427
14281428 // Using Signed32 as restriction type amounts to promising there won't be
1429- // signed overflow. This is incompatible with relying on a Word32
1430- // truncation in order to skip the overflow check.
1429+ // signed overflow. This is incompatible with relying on a Word32 truncation
1430+ // in order to skip the overflow check. Similarly, we must not drop -0 from
1431+ // the result type unless we deopt for -0 inputs.
14311432 Type const restriction =
1432- truncation.IsUsedAsWord32 () ? Type::Any () : Type::Signed32 ();
1433+ truncation.IsUsedAsWord32 ()
1434+ ? Type::Any ()
1435+ : (truncation.identify_zeros () == kIdentifyZeros )
1436+ ? Type::Signed32OrMinusZero ()
1437+ : Type::Signed32 ();
14331438
14341439 // Handle the case when no int32 checks on inputs are necessary (but
14351440 // an overflow check is needed on the output). Note that we do not
You can’t perform that action at this time.
0 commit comments