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

Issue 2719603002: Rename Closure instance field type_arguments_ to instantiator_. (Closed)

Created:
3 years, 10 months ago by regis
Modified:
3 years, 9 months ago
Reviewers:
rmacnak, Cutch
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Rename Closure instance field type_arguments_ to instantiator_. Simplify handling of closures as deferred objects. The name "type_arguments_" is confusing, because class Closure is not generic. Class Closure was forcefully made (kinda) generic by setting its type_arguments_field_offset_in_words_ field to a valid value, so that the type_arguments_ field in closure instances could be accessed similarly as in generic instances. With generic functions, closures will potentially have more than one instantiator and the name type_arguments_ becomes nonsensical. R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/3633c5bd5ec0b6b876433b204d6c94bbfa118351

Patch Set 1 #

Total comments: 4

Patch Set 2 : work in progress #

Total comments: 2

Patch Set 3 : work in progress #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -80 lines) Patch
M runtime/lib/function.dart View 1 1 chunk +10 lines, -1 line 0 comments Download
M runtime/lib/mirrors.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/bootstrap.cc View 1 1 chunk +16 lines, -1 line 0 comments Download
M runtime/vm/bootstrap_nocore.cc View 1 1 chunk +16 lines, -1 line 0 comments Download
M runtime/vm/code_generator.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M runtime/vm/deferred_objects.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 chunk +3 lines, -10 lines 0 comments Download
M runtime/vm/object.cc View 5 chunks +6 lines, -8 lines 0 comments Download
M runtime/vm/object_service.cc View 3 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/precompiler.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/raw_object.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
M runtime/vm/simulator_dbc.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/stub_code_arm64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/stub_code_ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/stub_code_mips.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/stub_code_x64.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
regis
3 years, 10 months ago (2017-02-24 21:51:01 UTC) #2
Cutch
https://codereview.chromium.org/2719603002/diff/1/runtime/lib/function.dart File runtime/lib/function.dart (right): https://codereview.chromium.org/2719603002/diff/1/runtime/lib/function.dart#newcode18 runtime/lib/function.dart:18: // Caution: These fields are not Dart instances, but ...
3 years, 10 months ago (2017-02-24 22:15:37 UTC) #3
Cutch
lgtm
3 years, 10 months ago (2017-02-24 22:15:43 UTC) #4
regis
Thanks! https://codereview.chromium.org/2719603002/diff/1/runtime/lib/function.dart File runtime/lib/function.dart (right): https://codereview.chromium.org/2719603002/diff/1/runtime/lib/function.dart#newcode18 runtime/lib/function.dart:18: // Caution: These fields are not Dart instances, ...
3 years, 10 months ago (2017-02-24 22:54:41 UTC) #5
Cutch
https://codereview.chromium.org/2719603002/diff/20001/runtime/vm/bootstrap.cc File runtime/vm/bootstrap.cc (right): https://codereview.chromium.org/2719603002/diff/20001/runtime/vm/bootstrap.cc#newcode279 runtime/vm/bootstrap.cc:279: field ^= fields.At(0); Maybe also verify field name?
3 years, 10 months ago (2017-02-24 22:58:32 UTC) #6
regis
https://codereview.chromium.org/2719603002/diff/20001/runtime/vm/bootstrap.cc File runtime/vm/bootstrap.cc (right): https://codereview.chromium.org/2719603002/diff/20001/runtime/vm/bootstrap.cc#newcode279 runtime/vm/bootstrap.cc:279: field ^= fields.At(0); On 2017/02/24 22:58:32, Cutch wrote: > ...
3 years, 10 months ago (2017-02-24 23:02:35 UTC) #7
regis
3 years, 9 months ago (2017-02-27 19:14:11 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
3633c5bd5ec0b6b876433b204d6c94bbfa118351 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698