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

Issue 2790073004: Restructure the Kernel string table. (Closed)

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

Description

Restructure the Kernel string table. Instead of a list of strings given by their length and UTF-8 encoding, restructure the string table to consist of a list of string ending offsets followed by a blob of UTF-8 encoded strings without lengths. This is a step toward copying the string blob into the VM's heap and building a heap-allocated structure to give random access to them. BUG= R=asgerf@google.com, jensj@google.com Committed: https://github.com/dart-lang/sdk/commit/04cb9809d10f1fa72da58a89a53c1a51a1e6f60e

Patch Set 1 #

Total comments: 7

Patch Set 2 : Incorporate review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -113 lines) Patch
M pkg/kernel/binary.md View 1 chunk +16 lines, -8 lines 0 comments Download
M pkg/kernel/lib/binary/ast_from_binary.dart View 1 6 chunks +16 lines, -17 lines 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 2 chunks +12 lines, -8 lines 0 comments Download
M runtime/vm/kernel.h View 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/kernel_binary.cc View 1 chunk +24 lines, -3 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.h View 5 chunks +22 lines, -14 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 3 chunks +43 lines, -63 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Kevin Millikin (Google)
3 years, 8 months ago (2017-04-04 09:26:43 UTC) #2
asgerf
LGTM https://codereview.chromium.org/2790073004/diff/1/pkg/kernel/binary.md File pkg/kernel/binary.md (right): https://codereview.chromium.org/2790073004/diff/1/pkg/kernel/binary.md#newcode67 pkg/kernel/binary.md:67: UInt index; // Index into the Program's .strings. ...
3 years, 8 months ago (2017-04-04 09:33:36 UTC) #3
jensj
lgtm with comments. https://codereview.chromium.org/2790073004/diff/1/pkg/kernel/lib/binary/ast_from_binary.dart File pkg/kernel/lib/binary/ast_from_binary.dart (right): https://codereview.chromium.org/2790073004/diff/1/pkg/kernel/lib/binary/ast_from_binary.dart#newcode126 pkg/kernel/lib/binary/ast_from_binary.dart:126: void readSourceUriTable() { This method isn't ...
3 years, 8 months ago (2017-04-04 09:42:17 UTC) #4
jensj
https://codereview.chromium.org/2790073004/diff/1/runtime/vm/kernel_binary_flowgraph.cc File runtime/vm/kernel_binary_flowgraph.cc (right): https://codereview.chromium.org/2790073004/diff/1/runtime/vm/kernel_binary_flowgraph.cc#newcode358 runtime/vm/kernel_binary_flowgraph.cc:358: end_offset = ReadUInt(); On 2017/04/04 09:42:16, jensj wrote: > ...
3 years, 8 months ago (2017-04-04 09:52:59 UTC) #5
Kevin Millikin (Google)
Thanks for the review. https://codereview.chromium.org/2790073004/diff/1/pkg/kernel/binary.md File pkg/kernel/binary.md (right): https://codereview.chromium.org/2790073004/diff/1/pkg/kernel/binary.md#newcode67 pkg/kernel/binary.md:67: UInt index; // Index into ...
3 years, 8 months ago (2017-04-04 11:02:59 UTC) #6
Kevin Millikin (Google)
3 years, 8 months ago (2017-04-04 11:04:35 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
04cb9809d10f1fa72da58a89a53c1a51a1e6f60e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698