Description[vm] Revise Dart_IntegerToHexCString to avoid dependency on Bigint
Until this change, implementation of Dart_IntegerToHexCString()
always created Bigint objects and used Bigint::ToHexCString() to do
the work.
In --limit-ints-to-64-bits mode (with Dart integers limited to 64
bits) Bigints are banned and should not be used.
This CL revises Dart_IntegerToHexCString implementation to avoid
creating Bigint objects for Smi and Mint arguments, so it would
work in --limit-ints-to-64-bits mode.
Also, this CL adds test case to lock down the behavior of
Dart_IntegerToHexCString.
R=asiva@google.com
Issue: https://github.com/dart-lang/sdk/issues/30103
Committed: https://github.com/dart-lang/sdk/commit/3d4838fc70a5439437a5ceb4247551315c294477
Patch Set 1 #
Total comments: 4
Patch Set 2 : Virtual methods grouped together #
Total comments: 2
Messages
Total messages: 9 (2 generated)
|