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

Issue 842033005: Make Bigint instances immutable by removing all setters. (Closed)

Created:
5 years, 11 months ago by regis
Modified:
5 years, 10 months ago
Reviewers:
rmacnak, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Make Bigint instances immutable by removing all setters. This required rewriting a large portion of bigint.dart. R=rmacnak@google.com Committed: https://code.google.com/p/dart/source/detail?r=43492

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1027 lines, -1082 lines) Patch
M runtime/lib/bigint.dart View 1 2 3 40 chunks +850 lines, -686 lines 1 comment Download
M runtime/lib/integers.cc View 1 2 3 3 chunks +6 lines, -27 lines 0 comments Download
M runtime/lib/integers.dart View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 3 chunks +0 lines, -51 lines 0 comments Download
M runtime/vm/intrinsifier_arm.cc View 1 2 3 1 chunk +0 lines, -21 lines 0 comments Download
M runtime/vm/intrinsifier_arm64.cc View 1 2 3 2 chunks +4 lines, -25 lines 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 1 2 3 1 chunk +0 lines, -25 lines 0 comments Download
M runtime/vm/intrinsifier_mips.cc View 1 2 3 1 chunk +0 lines, -24 lines 0 comments Download
M runtime/vm/intrinsifier_x64.cc View 1 2 3 2 chunks +5 lines, -28 lines 0 comments Download
M runtime/vm/method_recognizer.h View 1 2 3 2 chunks +12 lines, -18 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 2 chunks +24 lines, -22 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 11 chunks +123 lines, -147 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
regis
Unfortunately, RSA is slower with this cl, so I will not commit this change yet. ...
5 years, 11 months ago (2015-01-17 00:36:37 UTC) #2
regis
PTAL The lost performance has been regained. Thanks, Regis
5 years, 10 months ago (2015-02-03 21:18:48 UTC) #3
rmacnak
https://codereview.chromium.org/842033005/diff/40001/runtime/lib/bigint.dart File runtime/lib/bigint.dart (right): https://codereview.chromium.org/842033005/diff/40001/runtime/lib/bigint.dart#newcode41 runtime/lib/bigint.dart:41: class _Bigint extends _IntegerImplementation implements int { It would ...
5 years, 10 months ago (2015-02-04 19:24:53 UTC) #4
regis
PTAL Thanks! https://codereview.chromium.org/842033005/diff/40001/runtime/lib/bigint.dart File runtime/lib/bigint.dart (right): https://codereview.chromium.org/842033005/diff/40001/runtime/lib/bigint.dart#newcode41 runtime/lib/bigint.dart:41: class _Bigint extends _IntegerImplementation implements int { ...
5 years, 10 months ago (2015-02-04 22:06:23 UTC) #5
rmacnak
LGTM https://codereview.chromium.org/842033005/diff/60001/runtime/lib/bigint.dart File runtime/lib/bigint.dart (right): https://codereview.chromium.org/842033005/diff/60001/runtime/lib/bigint.dart#newcode41 runtime/lib/bigint.dart:41: // A big integer number is represented by ...
5 years, 10 months ago (2015-02-04 23:49:14 UTC) #6
regis
5 years, 10 months ago (2015-02-04 23:56:50 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as r43492 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698