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

Issue 802653005: dart2js: put all type-test related properties on the prototype and not on the constructor. (Closed)

Created:
6 years ago by floitsch
Modified:
6 years ago
Reviewers:
karlklose
CC:
reviews_dartlang.org, sra1, zarah
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

dart2js: put all type-test related properties on the prototype and not on the constructor. R=karlklose@google.com Committed: https://code.google.com/p/dart/source/detail?r=42392 Reverted: https://code.google.com/p/dart/source/detail?r=42408 Committed: https://code.google.com/p/dart/source/detail?r=42435

Patch Set 1 #

Patch Set 2 : Minor improvements #

Total comments: 8

Patch Set 3 : Cleanup. #

Patch Set 4 : Update comment. #

Patch Set 5 : Rebase after revert. #

Patch Set 6 : Fix (dart) Object.prototype.constructor. #

Patch Set 7 : Add workaround for non-existing classes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -109 lines) Patch
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 3 4 5 6 5 chunks +18 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart View 1 2 6 chunks +34 lines, -63 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_rti.dart View 1 2 3 4 4 chunks +23 lines, -20 lines 0 comments Download
M tests/compiler/dart2js/deferred_emit_type_checks_test.dart View 1 chunk +2 lines, -5 lines 0 comments Download
M tests/corelib/safe_to_string_test.dart View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
A + tests/language/generic_object_type_test.dart View 1 2 3 4 5 1 chunk +5 lines, -15 lines 0 comments Download
A tests/language/mixin_only_for_rti_test.dart View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
floitsch
6 years ago (2014-12-13 20:48:56 UTC) #2
floitsch
6 years ago (2014-12-15 08:24:08 UTC) #3
floitsch
Minor improvements.
6 years ago (2014-12-15 10:33:13 UTC) #4
karlklose
LGTM with a few comments. I hope that some test(s) will start to pass once ...
6 years ago (2014-12-15 13:12:22 UTC) #5
floitsch
No new tests pass. PTAL. I cleaned up the code. https://codereview.chromium.org/802653005/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart File pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart (right): https://codereview.chromium.org/802653005/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart#newcode78 ...
6 years ago (2014-12-15 16:04:35 UTC) #6
karlklose
SLGTM.
6 years ago (2014-12-16 13:25:59 UTC) #7
floitsch
Committed patchset #4 (id:60001) manually as 42392 (presubmit successful).
6 years ago (2014-12-16 13:49:00 UTC) #8
floitsch
I had to revert. PTAL. Patchset 5 vs 6 shows the new changes.
6 years ago (2014-12-16 20:30:22 UTC) #9
floitsch
Actually there are still some tests failing. I will send out another request for review ...
6 years ago (2014-12-16 20:50:57 UTC) #10
floitsch
Fixed the tests. One was assuming that "Object" kept its name in minified code. The ...
6 years ago (2014-12-16 21:16:06 UTC) #11
karlklose
Still LGTM.
6 years ago (2014-12-17 14:46:56 UTC) #12
floitsch
6 years ago (2014-12-17 15:05:24 UTC) #13
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as 42435 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698