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

Issue 1629553002: List constructor sentinel must not implement 'int' (Closed)

Created:
4 years, 11 months ago by sra1
Modified:
4 years, 11 months ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

List constructor sentinel must not implement 'int' (extend JSInt). Having a regular object that 'is' a number was causing horrible problems for type inference and generated code quality. To get this to work required fixes in type inference and the collection of reified default argument values. Fixes issue https://github.com/dart-lang/sdk/issues/25566 R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/4a01c6a1cfacb1013e8acca2bc7422dfb5c8c408

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -52 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart View 1 2 chunks +6 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart View 1 3 chunks +26 lines, -28 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/js_emitter.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/metadata_collector.dart View 1 3 chunks +67 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 1 chunk +51 lines, -8 lines 0 comments Download
M sdk/lib/_internal/js_runtime/lib/core_patch.dart View 1 1 chunk +1 line, -10 lines 0 comments Download
M sdk/lib/_internal/js_runtime/lib/js_array.dart View 1 3 chunks +17 lines, -1 line 0 comments Download
A tests/lib/mirrors/constructor_list_test.dart View 1 1 chunk +23 lines, -0 lines 0 comments Download
A tests/lib/mirrors/constructor_optional_args_test.dart View 1 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (10 generated)
sra1
4 years, 11 months ago (2016-01-22 22:48:21 UTC) #4
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/1629553002/diff/2/sdk/lib/_internal/js_runtime/lib/js_array.dart File sdk/lib/_internal/js_runtime/lib/js_array.dart (right): https://codereview.chromium.org/1629553002/diff/2/sdk/lib/_internal/js_runtime/lib/js_array.dart#newcode10 sdk/lib/_internal/js_runtime/lib/js_array.dart:10: const _ListConstructorSentinel = const _Growable(); nit: lowercase L ...
4 years, 11 months ago (2016-01-22 22:58:54 UTC) #5
sra1
4 years, 11 months ago (2016-01-26 04:40:52 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:90001) manually as
4a01c6a1cfacb1013e8acca2bc7422dfb5c8c408 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698