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

Issue 11633054: Implemented class literals in the VM. (Closed)

Created:
8 years ago by Tom Ball
Modified:
7 years, 12 months ago
Reviewers:
regis, hausner, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Implemented class literals in the VM. Committed: https://code.google.com/p/dart/source/detail?r=16530

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -65 lines) Patch
M runtime/vm/ast.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 1 chunk +11 lines, -3 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -7 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 3 chunks +3 lines, -40 lines 0 comments Download
M tests/language/class_literal_test.dart View 1 2 3 4 2 chunks +31 lines, -14 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
A tests/language/type_parameter_literal_test.dart View 1 2 1 chunk +15 lines, -0 lines 2 comments Download

Messages

Total messages: 16 (0 generated)
Tom Ball
8 years ago (2012-12-20 23:57:31 UTC) #1
regis
https://codereview.chromium.org/11633054/diff/3001/runtime/vm/parser.cc File runtime/vm/parser.cc (left): https://codereview.chromium.org/11633054/diff/3001/runtime/vm/parser.cc#oldcode8346 runtime/vm/parser.cc:8346: } Removing this code cannot be correct. The identifier ...
8 years ago (2012-12-21 00:09:10 UTC) #2
Ivan Posva
DBC It would also be nice to add a test for this: class D<A> { ...
8 years ago (2012-12-21 00:14:27 UTC) #3
hausner
Definitely need tests that use type parameters. https://codereview.chromium.org/11633054/diff/3001/tests/language/class_literal_test.dart File tests/language/class_literal_test.dart (right): https://codereview.chromium.org/11633054/diff/3001/tests/language/class_literal_test.dart#newcode43 tests/language/class_literal_test.dart:43: Expect.throws(() { ...
8 years ago (2012-12-21 00:31:42 UTC) #4
regis
Tom, As mentioned earlier, it may help to look at how type tests (is) and ...
8 years ago (2012-12-21 02:23:46 UTC) #5
Tom Ball
This CL now only adds support for class literals, not type parameter literals. I'll make ...
8 years ago (2012-12-21 22:24:11 UTC) #6
regis
You need to upload your latest version for review. I am fine with you only ...
8 years ago (2012-12-21 22:39:01 UTC) #7
Tom Ball
On 2012/12/21 22:39:01, regis wrote: > You need to upload your latest version for review. ...
8 years ago (2012-12-21 23:43:39 UTC) #8
regis
It's getting there. If you could make sure that the test passes, that would be ...
8 years ago (2012-12-22 00:04:50 UTC) #9
Tom Ball
https://codereview.chromium.org/11633054/diff/12001/runtime/vm/ast.h File runtime/vm/ast.h (right): https://codereview.chromium.org/11633054/diff/12001/runtime/vm/ast.h#newcode350 runtime/vm/ast.h:350: } On 2012/12/22 00:04:50, regis wrote: > You need ...
7 years, 12 months ago (2012-12-27 22:13:44 UTC) #10
regis
LGTM with a question. https://codereview.chromium.org/11633054/diff/29001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/11633054/diff/29001/runtime/vm/parser.cc#newcode6897 runtime/vm/parser.cc:6897: } Why is this code ...
7 years, 12 months ago (2012-12-27 22:51:19 UTC) #11
Tom Ball
https://codereview.chromium.org/11633054/diff/29001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/11633054/diff/29001/runtime/vm/parser.cc#newcode6897 runtime/vm/parser.cc:6897: } On 2012/12/27 22:51:24, regis wrote: > Why is ...
7 years, 12 months ago (2012-12-27 23:16:31 UTC) #12
regis
On 2012/12/27 23:16:31, Tom Ball wrote: > https://codereview.chromium.org/11633054/diff/29001/runtime/vm/parser.cc > File runtime/vm/parser.cc (right): > > https://codereview.chromium.org/11633054/diff/29001/runtime/vm/parser.cc#newcode6897 ...
7 years, 12 months ago (2012-12-27 23:37:45 UTC) #13
Ivan Posva
https://codereview.chromium.org/11633054/diff/36002/tests/language/type_parameter_literal_test.dart File tests/language/type_parameter_literal_test.dart (right): https://codereview.chromium.org/11633054/diff/36002/tests/language/type_parameter_literal_test.dart#newcode8 tests/language/type_parameter_literal_test.dart:8: T getT() { I am wondering why this is ...
7 years, 12 months ago (2012-12-28 01:22:39 UTC) #14
regis
On 2012/12/28 01:22:39, Ivan Posva wrote: > https://codereview.chromium.org/11633054/diff/36002/tests/language/type_parameter_literal_test.dart > File tests/language/type_parameter_literal_test.dart (right): > > https://codereview.chromium.org/11633054/diff/36002/tests/language/type_parameter_literal_test.dart#newcode8 ...
7 years, 12 months ago (2012-12-28 01:35:00 UTC) #15
Tom Ball
7 years, 12 months ago (2012-12-28 04:49:28 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/11633054/diff/36002/tests/language/type_param...
File tests/language/type_parameter_literal_test.dart (right):

https://codereview.chromium.org/11633054/diff/36002/tests/language/type_param...
tests/language/type_parameter_literal_test.dart:8: T getT() {
On 2012/12/28 01:22:39, Ivan Posva wrote:
> I am wondering why this is passing in checked mode. The returned value is of
> type Type and not T.

Fixed for next CL.

Powered by Google App Engine
This is Rietveld 408576698