Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Issue 2985423002: [vm] Revise Dart_IntegerToHexCString to avoid dependency on Bigint, v.2 (Closed)

Created:
3 years, 4 months ago by alexmarkov
Modified:
3 years, 4 months ago
Reviewers:
zra, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[vm] Revise Dart_IntegerToHexCString to avoid dependency on Bigint, v.2 Reapply 3d4838fc70a5439437a5ceb4247551315c294477 with the following modifications: * define PRIX64 to fix compilation errors on Windows; * add and use short form format specifiers PX and PX64 to make it uniform with other format specifiers. Original review: https://codereview.chromium.org/2987183002 Description of the original CL: 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=zra@google.com Issue: https://github.com/dart-lang/sdk/issues/30103 Committed: https://github.com/dart-lang/sdk/commit/ed74405635da8dfa940bf872391ad29d3e89fe59

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -22 lines) Patch
M runtime/platform/globals.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/platform/inttypes_support_win.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 chunk +1 line, -7 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 3 chunks +65 lines, -14 lines 0 comments Download
M runtime/vm/object.h View 3 chunks +7 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
alexmarkov
3 years, 4 months ago (2017-08-01 17:27:42 UTC) #2
zra
lgtm
3 years, 4 months ago (2017-08-01 17:46:08 UTC) #3
alexmarkov
3 years, 4 months ago (2017-08-01 17:49:57 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ed74405635da8dfa940bf872391ad29d3e89fe59 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698