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

Issue 10697055: Represent tokens as a compressed stream instead of an array. (Closed)

Created:
8 years, 5 months ago by siva
Modified:
8 years, 5 months ago
Reviewers:
hausner, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Represent tokens as a compressed stream instead of an array. On x86: Original sizes: Size of isolate snapshot = 925655 New space (0k of 32768k) Old space (1700k of 1792k) Code space (0k of 0k) out/ReleaseIA32/run_vm_tests --benchmarks CorelibCompileAll(RunTime): 80944 CorelibIsolateStartup(RunTime): 5636 UseDartApi(RunTime): 404620 Dart2JSCompileAll(RunTime): 1379683 FrameLookup(RunTime): 45 Size with the new TokenStream implementation: Size of isolate snapshot = 851352 New space (0k of 32768k) Old space (1368k of 1536k) Code space (0k of 0k) out/ReleaseIA32/run_vm_tests --benchmarks CorelibCompileAll(RunTime): 76918 CorelibIsolateStartup(RunTime): 4056 UseDartApi(RunTime): 502111 Dart2JSCompileAll(RunTime): 1251646 FrameLookup(RunTime): 45 (saves about 332k out of the original TokenStream size of 410k) On x64: Original sizes: Size of isolate snapshot = 924865 New space (0k of 32768k) Old space (3234k of 3444k) Code space (0k of 0k) out/ReleaseX64/run_vm_tests --benchmarks CorelibCompileAll(RunTime): 109660 CorelibIsolateStartup(RunTime): 3985 UseDartApi(RunTime): 463009 Dart2JSCompileAll(RunTime): 2170309 FrameLookup(RunTime): 35 Size with the new TokenStream implementation: Size of isolate snapshot = 849675 New space (0k of 32768k) Old space (2436k of 2560k) Code space (0k of 0k) out/ReleaseX64/run_vm_tests --benchmarks CorelibCompileAll(RunTime): 98716 CorelibIsolateStartup(RunTime): 2938 UseDartApi(RunTime): 509149 Dart2JSCompileAll(RunTime): 2042273 FrameLookup(RunTime): 39 (saves about 798k out of the original TokenStream size of 810k) Token stats: Number of tokens: 101470 Literal tokens: 4550 Ident tokens: 33020 Committed: https://code.google.com/p/dart/source/detail?r=9539

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+498 lines, -189 lines) Patch
M vm/benchmark_test.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -2 lines 0 comments Download
M vm/datastream.h View 1 2 3 4 5 6 7 8 4 chunks +22 lines, -2 lines 0 comments Download
M vm/object.h View 1 2 3 4 5 6 7 8 2 chunks +46 lines, -29 lines 0 comments Download
M vm/object.cc View 1 2 3 4 5 6 7 8 7 chunks +356 lines, -68 lines 0 comments Download
M vm/object_test.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -4 lines 0 comments Download
M vm/parser.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -29 lines 0 comments Download
M vm/parser.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -28 lines 0 comments Download
M vm/raw_object.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -6 lines 0 comments Download
M vm/raw_object.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M vm/raw_object_snapshot.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -10 lines 0 comments Download
M vm/snapshot.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M vm/snapshot.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M vm/snapshot_test.cc View 1 2 3 4 5 6 7 8 2 chunks +28 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
siva
8 years, 5 months ago (2012-07-02 19:36:42 UTC) #1
Ivan Posva
https://chromiumcodereview.appspot.com/10697055/diff/12004/vm/object.cc File vm/object.cc (right): https://chromiumcodereview.appspot.com/10697055/diff/12004/vm/object.cc#newcode4578 vm/object.cc:4578: stream_(tokens.EntryAddr(0), tokens.Length()), This is not GC safe.
8 years, 5 months ago (2012-07-02 21:48:32 UTC) #2
Ivan Posva
Some more comments. -Ivan https://chromiumcodereview.appspot.com/10697055/diff/12004/vm/object.cc File vm/object.cc (right): https://chromiumcodereview.appspot.com/10697055/diff/12004/vm/object.cc#newcode4493 vm/object.cc:4493: intptr_t FindIdentIndex(String* ident) { We ...
8 years, 5 months ago (2012-07-02 22:56:05 UTC) #3
siva
PTAL. https://chromiumcodereview.appspot.com/10697055/diff/12004/vm/object.cc File vm/object.cc (right): https://chromiumcodereview.appspot.com/10697055/diff/12004/vm/object.cc#newcode4493 vm/object.cc:4493: intptr_t FindIdentIndex(String* ident) { On 2012/07/02 22:56:05, Ivan ...
8 years, 5 months ago (2012-07-04 01:43:02 UTC) #4
siva
8 years, 5 months ago (2012-07-04 01:54:53 UTC) #5
Ivan Posva
8 years, 5 months ago (2012-07-09 20:41:20 UTC) #6
LGTM -ip

Powered by Google App Engine
This is Rietveld 408576698