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

Issue 2991233002: [kernel] Use helper functions to minimize assumptions about dill layout. (Closed)

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

Description

[kernel] Use helper functions to minimize assumptions about dill layout. Attempt to use the helper functions to minimize the number of places that would need updating should the binary file (the dill file) layout change. The changed code (in FieldHelper) makes assumptions about the layout of the FunctionNode. Instead use FunctionNodeHelper to get the wanted data. Also replaced an unconditional read-and-go-back with the usage of AlternativeReadingScope. BUG= R=sivachandra@google.com Committed: https://github.com/dart-lang/sdk/commit/fdd465e54062b1a19028cc5590c12d19f32e7c77

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -28 lines) Patch
M runtime/vm/kernel_binary_flowgraph.h View 3 chunks +28 lines, -28 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
jensj
There are probably more instances of stuff like this, I just happened to stumble upon ...
3 years, 4 months ago (2017-08-02 13:19:15 UTC) #3
sivachandra
LGTM
3 years, 4 months ago (2017-08-02 13:26:29 UTC) #4
jensj
3 years, 4 months ago (2017-08-03 06:37:34 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
fdd465e54062b1a19028cc5590c12d19f32e7c77 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698