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

Issue 10871092: Added option --script-snapshot in gen_snapshot to generate the snapshot of a scipt into the file. (Closed)

Created:
8 years, 3 months ago by siva
Modified:
8 years, 3 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added option --script-snapshot in gen_snapshot to generate the snapshot of a scipt into the file. Added option --use-script-snapshot to dart to be able to read a script from a snapshot. Using this for dart2js produces the following result: time dart --use-script-snapshot=dart2-js out/ReleaseIA32/dart-sdk/lib/dart2js/lib/compiler/implementation/dart2js.dart tests/language/string_test.dart -oout.js real 0m1.733s user 0m1.690s sys 0m0.030s without the snapshot the runtimes are: time out/ReleaseIA32/dart out/ReleaseIA32/dart-sdk/lib/dart2js/lib/compiler/implementation/dart2js.dart tests/language/string_test.dart -oout.js.orig real 0m2.406s user 0m2.350s sys 0m0.040s Committed: https://code.google.com/p/dart/source/detail?r=11840

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -313 lines) Patch
M runtime/bin/dartutils.h View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 5 5 chunks +186 lines, -0 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 4 5 8 chunks +156 lines, -95 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 5 12 chunks +60 lines, -218 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
siva
8 years, 3 months ago (2012-08-29 22:50:08 UTC) #1
siva
synched up to TOT.
8 years, 3 months ago (2012-08-31 00:56:16 UTC) #2
Ivan Posva
https://chromiumcodereview.appspot.com/10871092/diff/16001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://chromiumcodereview.appspot.com/10871092/diff/16001/runtime/bin/main.cc#newcode441 runtime/bin/main.cc:441: *error = strdup("Invalid script snapshot file name specified"); You ...
8 years, 3 months ago (2012-08-31 23:20:51 UTC) #3
siva
Addressed comments. https://chromiumcodereview.appspot.com/10871092/diff/16001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://chromiumcodereview.appspot.com/10871092/diff/16001/runtime/bin/main.cc#newcode441 runtime/bin/main.cc:441: *error = strdup("Invalid script snapshot file name ...
8 years, 3 months ago (2012-09-01 00:25:44 UTC) #4
Ivan Posva
8 years, 3 months ago (2012-09-01 00:40:39 UTC) #5
LGTM -ip

Powered by Google App Engine
This is Rietveld 408576698