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

Issue 161333002: Fix null.runtimeType, reflect(null).type.superinterfaces, and reflect(null).getField. (Closed)

Created:
6 years, 10 months ago by floitsch
Modified:
6 years, 10 months ago
Reviewers:
karlklose, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix null.runtimeType, reflect(null).type.superinterfaces, and reflect(null).getField. null.runtimeType.toString() returned "JSNull". reflect(null).type.superInterfaces mirrored on the interceptor and contained Null in the list. reflect(null).getField was trying to cache the getters on the object and failed. BUG= http://dartbug.com/16741 BUG= http://dartbug.com/12482 R=karlklose@google.com, kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=32650 Reverted: https://code.google.com/p/dart/source/detail?r=32652 Committed: https://code.google.com/p/dart/source/detail?r=32654 Reverted: https://code.google.com/p/dart/source/detail?r=32665 Committed: https://code.google.com/p/dart/source/detail?r=32692

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments and update status file. #

Patch Set 3 : Rebase/Reupload after revert. #

Patch Set 4 : Fix for minified mode. #

Patch Set 5 : After revert with status-line fix. #

Patch Set 6 : After revert with status-line fix. (error 500) #

Patch Set 7 : Rebase #

Patch Set 8 : Update status file for Safari. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -16 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/lib/js_helper.dart View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/lib/js_mirrors.dart View 1 2 chunks +4 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +0 lines, -2 lines 0 comments Download
A tests/language/null2_test.dart View 1 1 chunk +22 lines, -0 lines 0 comments Download
M tests/language/null_test.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
A + tests/lib/mirrors/null2_test.dart View 1 chunk +6 lines, -5 lines 0 comments Download
M tests/lib/mirrors/null_test.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
floitsch
6 years, 10 months ago (2014-02-12 21:32:24 UTC) #1
kasperl
LGTM. https://codereview.chromium.org/161333002/diff/1/sdk/lib/_internal/lib/js_mirrors.dart File sdk/lib/_internal/lib/js_mirrors.dart (right): https://codereview.chromium.org/161333002/diff/1/sdk/lib/_internal/lib/js_mirrors.dart#newcode881 sdk/lib/_internal/lib/js_mirrors.dart:881: var cacheHolder = reflectee == null ? getInterceptor(null) ...
6 years, 10 months ago (2014-02-13 07:07:08 UTC) #2
karlklose
LGTM. https://codereview.chromium.org/161333002/diff/1/tests/language/null2_test.dart File tests/language/null2_test.dart (right): https://codereview.chromium.org/161333002/diff/1/tests/language/null2_test.dart#newcode12 tests/language/null2_test.dart:12: try { throw [x]; } on dynamic catch ...
6 years, 10 months ago (2014-02-13 08:20:07 UTC) #3
floitsch
https://codereview.chromium.org/161333002/diff/1/sdk/lib/_internal/lib/js_mirrors.dart File sdk/lib/_internal/lib/js_mirrors.dart (right): https://codereview.chromium.org/161333002/diff/1/sdk/lib/_internal/lib/js_mirrors.dart#newcode881 sdk/lib/_internal/lib/js_mirrors.dart:881: var cacheHolder = reflectee == null ? getInterceptor(null) : ...
6 years, 10 months ago (2014-02-13 10:26:30 UTC) #4
floitsch
Committed patchset #2 manually as r32650 (presubmit successful).
6 years, 10 months ago (2014-02-13 12:39:39 UTC) #5
floitsch
PTAL. One more line (diff patch-set 3 and 4).
6 years, 10 months ago (2014-02-13 14:45:30 UTC) #6
karlklose
LGTM.
6 years, 10 months ago (2014-02-13 14:46:12 UTC) #7
floitsch
Committed patchset #4 manually as r32654 (presubmit successful).
6 years, 10 months ago (2014-02-13 15:10:23 UTC) #8
floitsch
Updated status file for Safari. Trying to land again. (TBR)
6 years, 10 months ago (2014-02-14 12:01:29 UTC) #9
karlklose
LGTM.
6 years, 10 months ago (2014-02-14 12:05:27 UTC) #10
floitsch
6 years, 10 months ago (2014-02-14 12:08:30 UTC) #11
Message was sent while issue was closed.
Committed patchset #8 manually as r32692 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698