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

Issue 2778693002: [kernel] Don't use kernel ast nodes as keys (Closed)

Created:
3 years, 9 months ago by jensj
Modified:
3 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[kernel] Don't use kernel ast nodes as keys ScopeBuildingResult now uses 'IntMap's instead, i.e. doesn't use kernel objects as key function_scopes doesn't contain function but dill file offset BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/bc7200c392494a11f1df3f6b6df661d3fee27108 Committed: https://github.com/dart-lang/sdk/commit/00ef784f0c9e34ace03a68c3a6bc6cc03dba69ab

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Pd64 -> Pd to be able to compile #

Patch Set 4 : Remove reinterpret_cast that dartium-win-ia32-be doesn't like #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -28 lines) Patch
M runtime/vm/kernel.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M runtime/vm/kernel_binary.cc View 1 2 16 chunks +27 lines, -13 lines 0 comments Download
M runtime/vm/kernel_to_il.h View 1 2 3 3 chunks +51 lines, -3 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 10 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
jensj
3 years, 9 months ago (2017-03-27 09:11:00 UTC) #2
Kevin Millikin (Google)
I suggest simplifying it by putting an offset on every tree node and getting rid ...
3 years, 8 months ago (2017-03-28 06:42:23 UTC) #3
jensj
Thanks. PTAL. https://codereview.chromium.org/2778693002/diff/1/runtime/vm/kernel.h File runtime/vm/kernel.h (right): https://codereview.chromium.org/2778693002/diff/1/runtime/vm/kernel.h#newcode719 runtime/vm/kernel.h:719: int64_t kernelFileOffset_; On 2017/03/28 06:42:22, Kevin Millikin ...
3 years, 8 months ago (2017-03-28 08:56:29 UTC) #4
Kevin Millikin (Google)
LGTM. https://codereview.chromium.org/2778693002/diff/20001/runtime/vm/kernel_to_il.h File runtime/vm/kernel_to_il.h (right): https://codereview.chromium.org/2778693002/diff/20001/runtime/vm/kernel_to_il.h#newcode88 runtime/vm/kernel_to_il.h:88: typedef int64_t Key; intptr_t? https://codereview.chromium.org/2778693002/diff/20001/runtime/vm/kernel_to_il.h#newcode553 runtime/vm/kernel_to_il.h:553: int64_t kernel_offset; ...
3 years, 8 months ago (2017-03-28 12:30:12 UTC) #5
jensj
Committed patchset #2 (id:20001) manually as bc7200c392494a11f1df3f6b6df661d3fee27108 (presubmit successful).
3 years, 8 months ago (2017-03-29 06:39:46 UTC) #7
jensj
3 years, 8 months ago (2017-03-29 07:57:21 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
00ef784f0c9e34ace03a68c3a6bc6cc03dba69ab (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698