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

Issue 1639313002: dart2js CPS: implement special handling of the Symbol constructor. (Closed)

Created:
4 years, 11 months ago by Kevin Millikin (Google)
Modified:
4 years, 10 months ago
Reviewers:
asgerf
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js CPS: implement special handling of the Symbol constructor. There is a 'const' Symbol constructor that is not expressible as a Dart const constructor because it performs validation of its input. This is implemented in the libraries by using a dummy const constructor definition that does not validate its input and replacing calls to 'new Symbol' with calls to 'new Symbol.validated' in the compiler. Without replacing calls to 'new Symbol', the non-validating dummy implementation will be used, which is not correct. Closes #24878. R=asgerf@google.com BUG=https://github.com/dart-lang/sdk/issues/24878 Committed: https://github.com/dart-lang/sdk/commit/fd9603d1d26e840b30ec086f67207f34d94579db

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -13 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart View 1 chunk +11 lines, -1 line 0 comments Download
M tests/co19/co19-dart2js.status View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/corelib/corelib.status View 3 chunks +1 line, -9 lines 0 comments Download
M tests/lib/lib.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (1 generated)
Kevin Millikin (Google)
4 years, 11 months ago (2016-01-27 14:43:34 UTC) #1
asgerf
LGTM
4 years, 11 months ago (2016-01-27 14:56:32 UTC) #2
Kevin Millikin (Google)
4 years, 10 months ago (2016-01-28 07:55:46 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
fd9603d1d26e840b30ec086f67207f34d94579db (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698