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

Issue 2591203002: [intl] Remove redundant type checking system (Closed)

Created:
4 years ago by Dan Ehrenberg
Modified:
3 years, 12 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[intl] Remove redundant type checking system Previously, the Intl implementation tracked types two ways: - In the intl_initialized_marker_symbol - In various named properties of the intl_impl_object_symbol value As far as I can tell, these will never disagree with each other, modulo bugs in Intl itself. This patch removes the second type checking system. BUG=v8:5751 Review-Url: https://codereview.chromium.org/2591203002 Cr-Commit-Position: refs/heads/master@{#41941} Committed: https://chromium.googlesource.com/v8/v8/+/0d5561b64d34129e6546947255e543c219c61655

Patch Set 1 #

Patch Set 2 : Remove the other side of the type checking; add tests #

Total comments: 2

Patch Set 3 : Formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -65 lines) Patch
M src/i18n.cc View 1 4 chunks +4 lines, -36 lines 0 comments Download
M src/runtime/runtime-i18n.cc View 1 13 chunks +9 lines, -29 lines 0 comments Download
A test/intl/bad-target.js View 1 2 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (18 generated)
Dan Ehrenberg
PTAL
4 years ago (2016-12-21 16:45:51 UTC) #11
Yang
lgtm https://codereview.chromium.org/2591203002/diff/20001/test/intl/bad-target.js File test/intl/bad-target.js (right): https://codereview.chromium.org/2591203002/diff/20001/test/intl/bad-target.js#newcode8 test/intl/bad-target.js:8: assertThrows(() => Object.create(Intl.DateTimeFormat.prototype).format(), TypeError); 80 char limit
3 years, 12 months ago (2016-12-23 08:55:44 UTC) #12
Dan Ehrenberg
https://codereview.chromium.org/2591203002/diff/20001/test/intl/bad-target.js File test/intl/bad-target.js (right): https://codereview.chromium.org/2591203002/diff/20001/test/intl/bad-target.js#newcode8 test/intl/bad-target.js:8: assertThrows(() => Object.create(Intl.DateTimeFormat.prototype).format(), TypeError); On 2016/12/23 08:55:44, Yang wrote: ...
3 years, 12 months ago (2016-12-23 13:58:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2591203002/40001
3 years, 12 months ago (2016-12-23 13:58:16 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/0d5561b64d34129e6546947255e543c219c61655
3 years, 12 months ago (2016-12-23 14:23:27 UTC) #23
Dan Ehrenberg
3 years, 12 months ago (2016-12-27 15:04:39 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2601783002/ by littledan@chromium.org.

The reason for reverting is: Issue
https://bugs.chromium.org/p/chromium/issues/detail?id=677055 . I'll send out a
follow-on reland, as it should still be possible to eliminate the redundant type
system..

Powered by Google App Engine
This is Rietveld 408576698