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

Issue 2781893004: Remove definitions from Kernel canonical names. (Closed)

Created:
3 years, 8 months ago by Kevin Millikin (Google)
Modified:
3 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove definitions from Kernel canonical names. Before: Canonical names contained pointers to the corresponding Kernel tree which assumed that the whole tree was in memory whenever the canonical names were. Now: Canonical names do not contain these pointers. They were only really used to perform name-based lookup in the VM's heap so the canonical name itself is enough. If we later find that we need to get from a canonical name to its Kernel tree we can add an offset in the binary (for instance) to the canonical name or in a separate mapping on the side. BUG= R=asgerf@google.com, jensj@google.com, vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/ed77783cd32d55fdad61bf9bc749030847ba9384 Committed: https://github.com/dart-lang/sdk/commit/d562f7ced52c28cd417660128b6bafe44534a422

Patch Set 1 #

Patch Set 2 : Small cleanups before review. #

Total comments: 4

Patch Set 3 : Incorporate review comments. #

Patch Set 4 : Update test expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -355 lines) Patch
M pkg/kernel/lib/ast.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/kernel/lib/canonical_name.dart View 3 chunks +7 lines, -1 line 0 comments Download
M runtime/tests/vm/vm.status View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/kernel.h View 1 2 27 chunks +46 lines, -89 lines 0 comments Download
M runtime/vm/kernel.cc View 1 2 19 chunks +133 lines, -69 lines 0 comments Download
M runtime/vm/kernel_binary.cc View 7 chunks +6 lines, -24 lines 0 comments Download
M runtime/vm/kernel_reader.cc View 1 2 7 chunks +18 lines, -13 lines 0 comments Download
M runtime/vm/kernel_to_il.h View 5 chunks +32 lines, -16 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 27 chunks +166 lines, -140 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (5 generated)
Kevin Millikin (Google)
3 years, 8 months ago (2017-03-29 11:47:45 UTC) #2
Kevin Millikin (Google)
https://codereview.chromium.org/2781893004/diff/20001/pkg/kernel/lib/canonical_name.dart File pkg/kernel/lib/canonical_name.dart (right): https://codereview.chromium.org/2781893004/diff/20001/pkg/kernel/lib/canonical_name.dart#newcode51 pkg/kernel/lib/canonical_name.dart:51: /// Qualified name The VM needs to distinguish factories ...
3 years, 8 months ago (2017-03-29 11:48:52 UTC) #3
Kevin Millikin (Google)
https://codereview.chromium.org/2781893004/diff/20001/runtime/vm/kernel_reader.cc File runtime/vm/kernel_reader.cc (right): https://codereview.chromium.org/2781893004/diff/20001/runtime/vm/kernel_reader.cc#newcode138 runtime/vm/kernel_reader.cc:138: dart::Library& library = LookupLibrary(main->Enclosing()); Maybe 'EnclosingName' because otherwise this ...
3 years, 8 months ago (2017-03-29 11:50:30 UTC) #4
asgerf
lgtm
3 years, 8 months ago (2017-03-29 11:50:34 UTC) #5
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/2781893004/diff/20001/runtime/vm/kernel.cc File runtime/vm/kernel.cc (right): https://codereview.chromium.org/2781893004/diff/20001/runtime/vm/kernel.cc#newcode92 runtime/vm/kernel.cc:92: return memcmp(parent->name()->buffer(), "@fields", sizeof("@fields") - 1) == GCC ...
3 years, 8 months ago (2017-03-29 13:19:52 UTC) #6
Kevin Millikin (Google)
https://codereview.chromium.org/2781893004/diff/20001/runtime/vm/kernel.cc File runtime/vm/kernel.cc (right): https://codereview.chromium.org/2781893004/diff/20001/runtime/vm/kernel.cc#newcode92 runtime/vm/kernel.cc:92: return memcmp(parent->name()->buffer(), "@fields", sizeof("@fields") - 1) == On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 13:43:42 UTC) #7
Kevin Millikin (Google)
Committed patchset #3 (id:40001) manually as ed77783cd32d55fdad61bf9bc749030847ba9384 (presubmit successful).
3 years, 8 months ago (2017-03-29 14:03:12 UTC) #9
Kevin Millikin (Google)
This was reverted because of test failures. There is nothing really wrong with this change. ...
3 years, 8 months ago (2017-03-30 07:28:15 UTC) #12
jensj
lgtm
3 years, 8 months ago (2017-03-30 07:30:32 UTC) #13
Kevin Millikin (Google)
3 years, 8 months ago (2017-03-30 07:31:42 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
d562f7ced52c28cd417660128b6bafe44534a422 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698