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

Issue 8772061: First step towards generation of application script snapshots (Closed)

Created:
9 years ago by siva
Modified:
9 years ago
Reviewers:
turnidge
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

First step towards generation of application script snapshots - Introduce 3 kinds of snapshots (full, application script and messages) - Added a dart API function to be used for generating an application snapshot and for loading the script from an application snapshot. Next step is to introduce special handling in the WriteTo and ReadFrom snapshot functions for 'kind == Snapshot::kScript' Committed: https://code.google.com/p/dart/source/detail?r=2105

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 26

Patch Set 4 : '' #

Total comments: 10

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -173 lines) Patch
M include/dart_api.h View 1 2 3 4 2 chunks +49 lines, -3 lines 0 comments Download
M lib/isolate.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/vm/vm.status View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M vm/dart_api_impl.cc View 1 2 3 4 5 chunks +71 lines, -8 lines 0 comments Download
M vm/object.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M vm/raw_object.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M vm/raw_object_snapshot.cc View 1 2 3 4 72 chunks +118 lines, -123 lines 0 comments Download
M vm/snapshot.h View 1 2 3 4 10 chunks +40 lines, -14 lines 0 comments Download
M vm/snapshot.cc View 1 2 3 4 10 chunks +15 lines, -9 lines 0 comments Download
M vm/snapshot_test.cc View 1 2 3 4 13 chunks +71 lines, -12 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
siva
9 years ago (2011-12-03 00:22:54 UTC) #1
turnidge
http://codereview.chromium.org/8772061/diff/5003/include/dart_api.h File include/dart_api.h (right): http://codereview.chromium.org/8772061/diff/5003/include/dart_api.h#newcode349 include/dart_api.h:349: * can be used for fast initialization of an ...
9 years ago (2011-12-05 18:49:00 UTC) #2
siva
http://codereview.chromium.org/8772061/diff/5003/include/dart_api.h File include/dart_api.h (right): http://codereview.chromium.org/8772061/diff/5003/include/dart_api.h#newcode349 include/dart_api.h:349: * can be used for fast initialization of an ...
9 years ago (2011-12-05 21:35:37 UTC) #3
turnidge
lgtm, some minor comments follow... http://codereview.chromium.org/8772061/diff/8002/include/dart_api.h File include/dart_api.h (right): http://codereview.chromium.org/8772061/diff/8002/include/dart_api.h#newcode351 include/dart_api.h:351: * can only be ...
9 years ago (2011-12-05 23:23:35 UTC) #4
siva
9 years ago (2011-12-06 00:23:34 UTC) #5
Thanks.

http://codereview.chromium.org/8772061/diff/8002/include/dart_api.h
File include/dart_api.h (right):

http://codereview.chromium.org/8772061/diff/8002/include/dart_api.h#newcode351
include/dart_api.h:351: * can only be done before any dart code has executed.
On 2011/12/05 23:23:36, turnidge wrote:
> Instead  of "Snapshot ...  can only be done ...", how about "A snapshot ...
can
> only be created .."

Done.

http://codereview.chromium.org/8772061/diff/8002/include/dart_api.h#newcode358
include/dart_api.h:358: *   Dart_ExitScope.
Done, Somehow missed it the first time around.

On 2011/12/05 23:23:36, turnidge wrote:
> One of my earlier comments got skipped:
> 
> > I wouldn't talk about zones, since we don't talk about zones elsewhere in
this
> > header.  Here's what we say in other similar functions:
> > 
> >  "This buffer is scope allocated and is only valid until the next call to
> > Dart_ExitScope."

http://codereview.chromium.org/8772061/diff/8002/include/dart_api.h#newcode371
include/dart_api.h:371: * can only be done before any dart code has executed.
On 2011/12/05 23:23:36, turnidge wrote:
> Snapshot -> A snapshot
> done -> created

Done.

http://codereview.chromium.org/8772061/diff/8002/include/dart_api.h#newcode376
include/dart_api.h:376: *  created.
On 2011/12/05 23:23:36, turnidge wrote:
> Need extra space to line up "created".  Missing * on next line.

Done.

http://codereview.chromium.org/8772061/diff/8002/include/dart_api.h#newcode1269
include/dart_api.h:1269: * \return if no error occurs, the Library object
corresponding to the root
On 2011/12/05 23:23:36, turnidge wrote:
> Capitalize "if"

Done.

Powered by Google App Engine
This is Rietveld 408576698