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

Issue 126823004: Add TypeMirror.isSubtypeOf, TypeMirror.isAssignableTo, ClassMirror.isSubclassOf (Closed)

Created:
6 years, 11 months ago by rmacnak
Modified:
6 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, karlklose, floitsch
Visibility:
Public.

Description

Add TypeMirror.isSubtypeOf, TypeMirror.isAssignableTo, ClassMirror.isSubclassOf to the API, the VM runtime mirrors and the source mirrors. BUG=http://dartbug.com/12439 BUG=http://dartbug.com/13856 R=gbracha@google.com, johnniwinther@google.com, regis@google.com Committed: https://code.google.com/p/dart/source/detail?r=32577

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : +source mirrors #

Total comments: 4

Patch Set 9 : mark source mirrors as failing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+938 lines, -1 line) Patch
M runtime/lib/mirrors.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 3 4 5 6 7 8 6 chunks +67 lines, -1 line 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/dart2js_type_mirrors.dart View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -0 lines 0 comments Download
M sdk/lib/_internal/lib/js_mirrors.dart View 1 2 3 4 5 6 7 8 chunks +24 lines, -0 lines 0 comments Download
M sdk/lib/mirrors/mirrors.dart View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/dart2js.status View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/mirrors/relation_assignable_test.dart View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/mirrors/relation_subclass_test.dart View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/mirrors/relation_subtype_test.dart View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A tests/lib/mirrors/relation_assignable_test.dart View 1 2 3 4 5 6 7 8 1 chunk +319 lines, -0 lines 0 comments Download
A tests/lib/mirrors/relation_subclass_test.dart View 1 2 3 4 5 6 7 8 1 chunk +110 lines, -0 lines 0 comments Download
A tests/lib/mirrors/relation_subtype_test.dart View 1 2 3 4 5 6 7 8 1 chunk +303 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rmacnak
The tests are quite deficient
6 years, 11 months ago (2014-01-08 03:02:43 UTC) #1
gbracha
Tests lgtm but we need more. In particular, tests for function types and typedefs.
6 years, 11 months ago (2014-01-08 19:30:46 UTC) #2
rmacnak
+regis for vm implementation
6 years, 11 months ago (2014-01-11 00:14:33 UTC) #3
rmacnak
Added tests for typedefs, function types, type variables, dynamic and void.
6 years, 11 months ago (2014-01-11 00:14:56 UTC) #4
gbracha
See comments on tests. Dynamic is a subtype of anything and we are missing some ...
6 years, 11 months ago (2014-01-11 01:53:30 UTC) #5
ahe
I'm not sure we should be adding more API at this time. I think there ...
6 years, 11 months ago (2014-01-13 15:00:34 UTC) #6
regis
LGTM
6 years, 11 months ago (2014-01-13 17:48:37 UTC) #7
rmacnak
Updated tests per comments, plus to silence the analyzer.
6 years, 11 months ago (2014-01-14 01:04:06 UTC) #8
gbracha
tests lgtm.
6 years, 11 months ago (2014-01-14 01:19:01 UTC) #9
rmacnak
+Johnni re source mirrors implementation Noted some disagreements between the implementations to ask Gilad about ...
6 years, 10 months ago (2014-02-06 23:15:23 UTC) #10
Johnni Winther
lgtm
6 years, 10 months ago (2014-02-07 11:20:20 UTC) #11
rmacnak
6 years, 10 months ago (2014-02-11 20:41:46 UTC) #12
Message was sent while issue was closed.
Committed patchset #9 manually as r32577 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698