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

Issue 1459443002: VM: Add dart_precompiled build target, a standalone VM without the JIT compiler. (Closed)

Created:
5 years, 1 month ago by Florian Schneider
Modified:
5 years, 1 month ago
Reviewers:
Cutch, rmacnak, Ivan Posva
CC:
reviews_dartlang.org, ricow1, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Add dart_precompiled build target, a standalone VM without the JIT compiler. This removes most of the compiler-related code from dart_precompiled: x64 stripped binary size 13M -> 9.1M ARM stripped binary size 12M -> 8.3M The precompiled build defines the DART_PRECOMPILED macro. This stubs out the public interface to the compiler/parser with empty function bodies. Use gcc options -ffunction-sections and --gc-sections to make the linker remove unused functions/symbols. BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/f0a35b32607988a669db0d021e43f5211c707828

Patch Set 1 #

Total comments: 19

Patch Set 2 : addressed comments #

Patch Set 3 : merge #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -11 lines) Patch
M dart.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/bin.gypi View 1 1 chunk +43 lines, -0 lines 0 comments Download
M runtime/dart-runtime.gyp View 1 chunk +34 lines, -0 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 chunks +110 lines, -3 lines 1 comment Download
M runtime/vm/guard_field_test.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/isolate.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/locations.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 chunks +90 lines, -1 line 0 comments Download
M runtime/vm/precompiler.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/vm.gypi View 1 chunk +63 lines, -0 lines 0 comments Download
M tests/standalone/precompilation_dart2js_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/precompilation_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/gyp/configurations_make.gypi View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Florian Schneider
https://codereview.chromium.org/1459443002/diff/1/runtime/vm/locations.cc File runtime/vm/locations.cc (left): https://codereview.chromium.org/1459443002/diff/1/runtime/vm/locations.cc#oldcode10 runtime/vm/locations.cc:10: #include "vm/flow_graph_compiler.h" Also, removed a couple of random unnecessary ...
5 years, 1 month ago (2015-11-17 19:11:21 UTC) #2
rmacnak
Let's also have tests/standalone/precompilation_* use dart_precompiled instead of dart. https://codereview.chromium.org/1459443002/diff/1/runtime/bin/bin.gypi File runtime/bin/bin.gypi (right): https://codereview.chromium.org/1459443002/diff/1/runtime/bin/bin.gypi#newcode637 runtime/bin/bin.gypi:637: ...
5 years, 1 month ago (2015-11-17 20:51:19 UTC) #3
Florian Schneider
New stripped binary sizes (with non-precompiled snapshot excluded) 8.0M out/ReleaseX64/dart_precompiled 7.1M out/ReleaseXARM/dart_precompiled https://codereview.chromium.org/1459443002/diff/1/runtime/bin/bin.gypi File runtime/bin/bin.gypi ...
5 years, 1 month ago (2015-11-18 11:44:09 UTC) #4
rmacnak
lgtm https://codereview.chromium.org/1459443002/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1459443002/diff/1/runtime/vm/isolate.cc#newcode1644 runtime/vm/isolate.cc:1644: } On 2015/11/18 11:44:09, Florian Schneider wrote: > ...
5 years, 1 month ago (2015-11-18 19:00:07 UTC) #5
Florian Schneider
Committed patchset #3 (id:40001) manually as f0a35b32607988a669db0d021e43f5211c707828 (presubmit successful).
5 years, 1 month ago (2015-11-19 09:13:21 UTC) #6
Ivan Posva
5 years, 1 month ago (2015-11-20 05:14:50 UTC) #7
Message was sent while issue was closed.
Alternatively we should consider whether we want to use a value instead of the
mere definition.

-Ivan

https://codereview.chromium.org/1459443002/diff/40001/runtime/vm/compiler.cc
File runtime/vm/compiler.cc (right):

https://codereview.chromium.org/1459443002/diff/40001/runtime/vm/compiler.cc#...
runtime/vm/compiler.cc:80: #ifndef DART_PRECOMPILED
if !defined(DART_PRECOMPILED)

Powered by Google App Engine
This is Rietveld 408576698