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

Issue 8343071: When generating snapshots for a specified script don't include the builtin library by default. Th... (Closed)

Created:
9 years, 1 month ago by siva
Modified:
9 years, 1 month ago
Reviewers:
Anton Muhin
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

When generating snapshots for a specified script don't include the builtin library by default. The DOM snap shot for instance does not want the builtin library. If the builtin library is needed it needs to be explicitly imported in the specified script. Committed: https://code.google.com/p/dart/source/detail?r=971

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -10 lines) Patch
M bin/gen_snapshot.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M bin/process_script.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M bin/process_script.cc View 1 2 3 4 chunks +36 lines, -6 lines 4 comments Download
M vm/dart_api_impl.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
siva
9 years, 1 month ago (2011-10-28 21:29:53 UTC) #1
Anton Muhin
LGTM, but shouldn't you compensate for omitting this import somehow?
9 years, 1 month ago (2011-10-31 08:34:22 UTC) #2
siva
- made setting of built-in resolver conditional to the default stand alone case. - the ...
9 years, 1 month ago (2011-10-31 17:08:57 UTC) #3
siva
PTAL. Fixes the case of builtin lib being added in the snapshot script loading event ...
9 years, 1 month ago (2011-10-31 17:41:35 UTC) #4
Anton Muhin
LGTM Maybe rename --scripts argument to something like --libs? I am going to patch this ...
9 years, 1 month ago (2011-10-31 17:48:34 UTC) #5
siva
9 years, 1 month ago (2011-10-31 21:09:32 UTC) #6
http://codereview.chromium.org/8343071/diff/7004/bin/process_script.cc
File bin/process_script.cc (right):

http://codereview.chromium.org/8343071/diff/7004/bin/process_script.cc#newcode89
bin/process_script.cc:89: enum ImportBuiltin {
On 2011/10/31 17:48:34, antonmuhin wrote:
> nit: I would rather have two bool constants for it, but that's pretty
personal.

Done.

http://codereview.chromium.org/8343071/diff/7004/bin/process_script.cc#newcod...
bin/process_script.cc:145: // TODO(iposva): Should the builtin library be added
to all libraries?
On 2011/10/31 17:48:34, antonmuhin wrote:
> may TODO go away or get moved into MainLibraryTagHandler?

Done.

Powered by Google App Engine
This is Rietveld 408576698