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

Issue 1714743002: VM: Separate precompilation-specific code, make flags const. (Closed)

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

Description

VM: Separate precompilation-specific code, make flags const. Move optimizations for precompilation into separate file. Remove precompilation-specific code from flow_graph_optimizer.cc. Add precompilation-flags: They are const in the precompiled runtime. Started moving flags to use the new flag-definition macros. Add libdart_lib_precompiled target. Define PRECOMPILED_RUNTIME_MACRO in more places (dart_precompiled_runtime) BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/b870dafa4f04a117366292b5824739d8f1806fb0

Patch Set 1 #

Total comments: 18

Patch Set 2 : addressed comments #

Total comments: 10

Patch Set 3 : addressed comments #

Patch Set 4 : fix build after merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -858 lines) Patch
M runtime/bin/bin.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/dart-runtime.gyp View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/mirrors.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
A + runtime/vm/aot_optimizer.h View 5 chunks +8 lines, -8 lines 0 comments Download
A + runtime/vm/aot_optimizer.cc View 1 2 3 56 chunks +95 lines, -656 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/code_generator.cc View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M runtime/vm/dart_entry.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/flag_list.h View 1 2 3 3 chunks +33 lines, -2 lines 0 comments Download
M runtime/vm/flags.h View 1 1 chunk +28 lines, -4 lines 0 comments Download
M runtime/vm/flags.cc View 1 1 chunk +33 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 6 chunks +12 lines, -10 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 1 2 3 5 chunks +23 lines, -14 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.h View 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 10 chunks +0 lines, -99 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/precompiler.h View 1 2 3 2 chunks +29 lines, -0 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 2 3 4 chunks +4 lines, -31 lines 0 comments Download
M runtime/vm/redundancy_elimination.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/resolver.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/stack_frame_test.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_arm.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/stub_code_arm64.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/stub_code_ia32.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/stub_code_mips.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/stub_code_x64.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/vm.gypi View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Florian Schneider
4 years, 10 months ago (2016-02-19 00:25:42 UTC) #3
Florian Schneider
+iposva: ptal at the new flag-definition macro for precompiled code
4 years, 10 months ago (2016-02-19 00:29:04 UTC) #5
rmacnak
https://codereview.chromium.org/1714743002/diff/1/runtime/dart-runtime.gyp File runtime/dart-runtime.gyp (right): https://codereview.chromium.org/1714743002/diff/1/runtime/dart-runtime.gyp#newcode98 runtime/dart-runtime.gyp:98: 'libdart_lib_precompiled', precompiled_runtime https://codereview.chromium.org/1714743002/diff/1/runtime/vm/flag_list.h File runtime/vm/flag_list.h (right): https://codereview.chromium.org/1714743002/diff/1/runtime/vm/flag_list.h#newcode14 runtime/vm/flag_list.h:14: // ...
4 years, 10 months ago (2016-02-19 00:54:32 UTC) #6
Ivan Posva
https://codereview.chromium.org/1714743002/diff/1/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (right): https://codereview.chromium.org/1714743002/diff/1/runtime/vm/aot_optimizer.cc#newcode32 runtime/vm/aot_optimizer.cc:32: DECLARE_FLAG(bool, guess_icdata_cid); Please move these to flag_list.h so that ...
4 years, 10 months ago (2016-02-19 01:07:50 UTC) #7
Florian Schneider
https://codereview.chromium.org/1714743002/diff/1/runtime/dart-runtime.gyp File runtime/dart-runtime.gyp (right): https://codereview.chromium.org/1714743002/diff/1/runtime/dart-runtime.gyp#newcode98 runtime/dart-runtime.gyp:98: 'libdart_lib_precompiled', On 2016/02/19 00:54:31, rmacnak wrote: > precompiled_runtime Done. ...
4 years, 10 months ago (2016-02-19 17:42:29 UTC) #8
rmacnak
lgtm https://codereview.chromium.org/1714743002/diff/20001/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (right): https://codereview.chromium.org/1714743002/diff/20001/runtime/vm/aot_optimizer.cc#newcode2048 runtime/vm/aot_optimizer.cc:2048: ASSERT(FLAG_precompilation); Keep comment: Cannot handle unboxed instructions. https://codereview.chromium.org/1714743002/diff/20001/runtime/vm/aot_optimizer.cc#newcode2056 ...
4 years, 10 months ago (2016-02-19 23:46:04 UTC) #9
Florian Schneider
https://codereview.chromium.org/1714743002/diff/20001/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (right): https://codereview.chromium.org/1714743002/diff/20001/runtime/vm/aot_optimizer.cc#newcode2048 runtime/vm/aot_optimizer.cc:2048: ASSERT(FLAG_precompilation); On 2016/02/19 23:46:03, rmacnak wrote: > Keep comment: ...
4 years, 10 months ago (2016-02-23 15:27:03 UTC) #10
Florian Schneider
4 years, 10 months ago (2016-02-23 16:48:14 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
b870dafa4f04a117366292b5824739d8f1806fb0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698