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

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)

Created:
4 years, 1 month ago by Vyacheslav Egorov (Google)
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Support bootstrapping core libraries from Kernel binaries instead of source. BUG=http://dartbug.com/27590 R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/23fd1a184b393825f29444243780f3593ce0b3c1

Patch Set 1 #

Patch Set 2 : Done #

Total comments: 20

Patch Set 3 : Done #

Patch Set 4 : rebase #

Total comments: 3

Patch Set 5 : make sure that code does not get pulled into dart_precompiled_runtime #

Patch Set 6 : more ifdef #

Patch Set 7 : Done #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1260 lines, -815 lines) Patch
M runtime/bin/builtin.cc View 1 chunk +11 lines, -1 line 0 comments Download
M runtime/bin/gen_snapshot.cc View 2 chunks +10 lines, -7 lines 2 comments Download
M runtime/bin/main.cc View 1 2 3 4 chunks +36 lines, -9 lines 2 comments Download
M runtime/bin/stdio_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice_impl.cc View 2 chunks +9 lines, -4 lines 0 comments Download
M runtime/include/dart_api.h View 1 2 3 2 chunks +29 lines, -1 line 0 comments Download
M runtime/lib/class_id.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
M runtime/lib/class_id.dart View 1 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/lib/errors_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/bootstrap.h View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M runtime/vm/bootstrap.cc View 1 2 3 5 chunks +74 lines, -14 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/bootstrap_nocore.cc View 1 2 3 4 1 chunk +122 lines, -2 lines 2 comments Download
M runtime/vm/class_finalizer.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 4 8 chunks +57 lines, -16 lines 0 comments Download
M runtime/vm/dart.h View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M runtime/vm/dart.cc View 1 2 3 4 chunks +15 lines, -5 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 4 chunks +38 lines, -10 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M runtime/vm/intrinsifier.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intrinsifier.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier_arm.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M runtime/vm/intrinsifier_arm64.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M runtime/vm/intrinsifier_mips.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M runtime/vm/intrinsifier_x64.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M runtime/vm/kernel.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/kernel.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/kernel_binary.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/kernel_reader.h View 1 2 3 4 5 6 chunks +6 lines, -8 lines 0 comments Download
M runtime/vm/kernel_reader.cc View 1 2 3 4 5 12 chunks +25 lines, -48 lines 0 comments Download
M runtime/vm/kernel_to_il.h View 1 2 3 4 5 6 chunks +9 lines, -8 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 3 4 5 6 8 chunks +34 lines, -10 lines 0 comments Download
M runtime/vm/method_recognizer.h View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M runtime/vm/method_recognizer.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 chunks +10 lines, -7 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 8 chunks +569 lines, -559 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 3 chunks +8 lines, -6 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M sdk/lib/io/platform_impl.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/co19/co19-kernel.status View 7 chunks +39 lines, -31 lines 0 comments Download
M tests/language/language_kernel.status View 10 chunks +29 lines, -40 lines 0 comments Download
M tools/patch_sdk.dart View 4 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (4 generated)
Vyacheslav Egorov (Google)
Please take a look. This brings last major changes from kernel_sdk fork with some modifications ...
4 years, 1 month ago (2016-11-08 19:34:44 UTC) #2
Florian Schneider
https://codereview.chromium.org/2485993002/diff/20001/runtime/vm/bootstrap.cc File runtime/vm/bootstrap.cc (right): https://codereview.chromium.org/2485993002/diff/20001/runtime/vm/bootstrap.cc#newcode42 runtime/vm/bootstrap.cc:42: #define MAKE_PROPERTIES(CamelName, hacker_name) \ I do like reducing boilerplate ...
4 years, 1 month ago (2016-11-08 20:41:40 UTC) #4
hausner
A few comments and questions. I haven't looked at the whole CL yet. Why was ...
4 years, 1 month ago (2016-11-09 00:42:49 UTC) #5
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2485993002/diff/20001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://codereview.chromium.org/2485993002/diff/20001/runtime/bin/main.cc#newcode808 runtime/bin/main.cc:808: TryReadKernel(script_uri, &kernel_file, &kernel_length); On 2016/11/09 00:42:49, hausner wrote: > ...
4 years, 1 month ago (2016-11-09 14:43:16 UTC) #6
Kevin Millikin (Google)
https://codereview.chromium.org/2485993002/diff/20001/runtime/vm/bootstrap.cc File runtime/vm/bootstrap.cc (right): https://codereview.chromium.org/2485993002/diff/20001/runtime/vm/bootstrap.cc#newcode44 runtime/vm/bootstrap.cc:44: "dart:" #hacker_name, \ On 2016/11/08 20:41:39, Florian Schneider wrote: ...
4 years, 1 month ago (2016-11-09 15:17:32 UTC) #7
hausner
One more Q https://codereview.chromium.org/2485993002/diff/20001/runtime/vm/raw_object.h File runtime/vm/raw_object.h (right): https://codereview.chromium.org/2485993002/diff/20001/runtime/vm/raw_object.h#newcode740 runtime/vm/raw_object.h:740: RawObject* library_or_library_prefix_; // Library or library ...
4 years, 1 month ago (2016-11-09 18:21:37 UTC) #8
Vyacheslav Egorov (Google)
Bootstrap libraries refactoring has now landed and CL is rebased against that to make review ...
4 years, 1 month ago (2016-11-09 18:44:52 UTC) #9
hausner
https://codereview.chromium.org/2485993002/diff/20001/runtime/vm/raw_object.h File runtime/vm/raw_object.h (right): https://codereview.chromium.org/2485993002/diff/20001/runtime/vm/raw_object.h#newcode740 runtime/vm/raw_object.h:740: RawObject* library_or_library_prefix_; // Library or library prefix qualifier On ...
4 years, 1 month ago (2016-11-09 19:07:01 UTC) #10
Vyacheslav Egorov (Google)
friendly ping
4 years, 1 month ago (2016-11-11 13:42:09 UTC) #11
Florian Schneider
https://codereview.chromium.org/2485993002/diff/60001/runtime/vm/method_recognizer.h File runtime/vm/method_recognizer.h (left): https://codereview.chromium.org/2485993002/diff/60001/runtime/vm/method_recognizer.h#oldcode527 runtime/vm/method_recognizer.h:527: #if defined(DART_NO_SNAPSHOT) Why remove this #ifdef? Or more general: ...
4 years, 1 month ago (2016-11-11 14:00:12 UTC) #12
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2485993002/diff/60001/runtime/vm/method_recognizer.h File runtime/vm/method_recognizer.h (left): https://codereview.chromium.org/2485993002/diff/60001/runtime/vm/method_recognizer.h#oldcode527 runtime/vm/method_recognizer.h:527: #if defined(DART_NO_SNAPSHOT) On 2016/11/11 14:00:12, Florian Schneider wrote: > ...
4 years, 1 month ago (2016-11-11 15:29:47 UTC) #13
Florian Schneider
https://codereview.chromium.org/2485993002/diff/60001/runtime/vm/method_recognizer.h File runtime/vm/method_recognizer.h (left): https://codereview.chromium.org/2485993002/diff/60001/runtime/vm/method_recognizer.h#oldcode527 runtime/vm/method_recognizer.h:527: #if defined(DART_NO_SNAPSHOT) On 2016/11/11 15:29:47, Vyacheslav Egorov (Google) wrote: ...
4 years, 1 month ago (2016-11-11 15:54:25 UTC) #14
Vyacheslav Egorov (Google)
On 2016/11/11 15:54:25, Florian Schneider wrote: > https://codereview.chromium.org/2485993002/diff/60001/runtime/vm/method_recognizer.h > File runtime/vm/method_recognizer.h (left): > > https://codereview.chromium.org/2485993002/diff/60001/runtime/vm/method_recognizer.h#oldcode527 ...
4 years, 1 month ago (2016-11-11 16:01:54 UTC) #15
Florian Schneider
On 2016/11/11 16:01:54, Vyacheslav Egorov (Google) wrote: > On 2016/11/11 15:54:25, Florian Schneider wrote: > ...
4 years, 1 month ago (2016-11-11 16:27:55 UTC) #16
Vyacheslav Egorov (Google)
I restored compilation guards in such a way that bootstrapping parts don't get pulled into ...
4 years, 1 month ago (2016-11-11 18:33:23 UTC) #17
Vyacheslav Egorov (Google)
I sprinkled more ifdef's on the code to reduce amount of stuff pulled into dart_precompiled_runtime ...
4 years, 1 month ago (2016-11-11 18:51:33 UTC) #18
Vyacheslav Egorov (Google)
friendly ping. this is blocking the decomissioning of the fork
4 years, 1 month ago (2016-11-15 11:11:50 UTC) #19
siva
lgtm https://codereview.chromium.org/2485993002/diff/120001/runtime/bin/gen_snapshot.cc File runtime/bin/gen_snapshot.cc (right): https://codereview.chromium.org/2485993002/diff/120001/runtime/bin/gen_snapshot.cc#newcode1270 runtime/bin/gen_snapshot.cc:1270: const uint8_t* payload = NULL; Maybe names like ...
4 years, 1 month ago (2016-11-16 05:49:34 UTC) #20
Vyacheslav Egorov (Google)
Thank you! Landing https://codereview.chromium.org/2485993002/diff/120001/runtime/bin/gen_snapshot.cc File runtime/bin/gen_snapshot.cc (right): https://codereview.chromium.org/2485993002/diff/120001/runtime/bin/gen_snapshot.cc#newcode1270 runtime/bin/gen_snapshot.cc:1270: const uint8_t* payload = NULL; On ...
4 years, 1 month ago (2016-11-16 12:47:46 UTC) #21
Vyacheslav Egorov (Google)
Committed patchset #7 (id:120001) manually as 23fd1a184b393825f29444243780f3593ce0b3c1 (presubmit successful).
4 years, 1 month ago (2016-11-16 12:56:25 UTC) #23
jeffbrown
I believe this change has broken the Dart build in Fuchsia. FAILED: obj/dart/runtime/vm/libdart_lib_nosnapshot_precompiled_runtime.bootstrap.o ../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD ...
4 years, 1 month ago (2016-11-16 14:50:40 UTC) #25
Cutch
4 years, 1 month ago (2016-11-17 23:05:36 UTC) #26
Message was sent while issue was closed.
This broke Flutter.

Powered by Google App Engine
This is Rietveld 408576698