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

Issue 2985883002: Add support for field initialization in objects (Closed)

Created:
3 years, 4 months ago by zhivkag
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add support for field initialization in objects Fields declared as T f = E are now initialized to the value expression E evaluates to. Fields without initalizer expression are intialized with null. BUG= R=dmitryas@google.com Committed: https://github.com/dart-lang/sdk/commit/23311999680846a9840a30523e8610920e1df066

Patch Set 1 #

Patch Set 2 : Remove unnecessary print #

Total comments: 5

Patch Set 3 : Fix too long line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -63 lines) Patch
M pkg/kernel/lib/interpreter/interpreter.dart View 1 2 4 chunks +60 lines, -3 lines 0 comments Download
M pkg/kernel/test/interpreter/interpreter.status View 1 chunk +0 lines, -1 line 0 comments Download
A pkg/kernel/testcases/interpreter/object_field_initializers_test.dart View 1 chunk +57 lines, -0 lines 0 comments Download
A pkg/kernel/testcases/interpreter/object_field_initializers_test.dart.expect View 1 chunk +28 lines, -0 lines 0 comments Download
D pkg/kernel/testcases/interpreter/object_initializers_test.dart View 1 chunk +0 lines, -39 lines 0 comments Download
D pkg/kernel/testcases/interpreter/object_initializers_test.dart.expect View 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
zhivkag
3 years, 4 months ago (2017-07-26 14:02:07 UTC) #2
Dmitry Stefantsov
I have a couple of questions. Please, find them below. https://codereview.chromium.org/2985883002/diff/20001/pkg/kernel/lib/interpreter/interpreter.dart File pkg/kernel/lib/interpreter/interpreter.dart (right): https://codereview.chromium.org/2985883002/diff/20001/pkg/kernel/lib/interpreter/interpreter.dart#newcode1000 ...
3 years, 4 months ago (2017-07-27 09:10:39 UTC) #3
zhivkag
https://codereview.chromium.org/2985883002/diff/20001/pkg/kernel/lib/interpreter/interpreter.dart File pkg/kernel/lib/interpreter/interpreter.dart (right): https://codereview.chromium.org/2985883002/diff/20001/pkg/kernel/lib/interpreter/interpreter.dart#newcode1000 pkg/kernel/lib/interpreter/interpreter.dart:1000: new InstanceFieldsA(constructor, new Location(value), ctrEnv, bodyCont); On 2017/07/27 09:10:39, ...
3 years, 4 months ago (2017-07-27 10:38:21 UTC) #4
Dmitry Stefantsov
LGTM https://codereview.chromium.org/2985883002/diff/20001/pkg/kernel/lib/interpreter/interpreter.dart File pkg/kernel/lib/interpreter/interpreter.dart (right): https://codereview.chromium.org/2985883002/diff/20001/pkg/kernel/lib/interpreter/interpreter.dart#newcode1000 pkg/kernel/lib/interpreter/interpreter.dart:1000: new InstanceFieldsA(constructor, new Location(value), ctrEnv, bodyCont); On 2017/07/27 ...
3 years, 4 months ago (2017-07-27 10:43:31 UTC) #5
zhivkag
3 years, 4 months ago (2017-07-27 11:47:25 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
23311999680846a9840a30523e8610920e1df066 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698