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

Issue 14786012: Second step towards loading the core library scripts directly from the sources (Closed)

Created:
7 years, 7 months ago by siva
Modified:
7 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Second step towards loading core library scripts directly from the sources - Modify the library source generator to generate a source mapping array The generated array is of the following format: const char* dart::Bootstrap::corelib_source_paths_[] = { "dart:core", "/workspace1/dart-all/dart/sdk/lib/core/core.dart", "bool.dart", "/workspace1/dart-all/dart/sdk/lib/core/bool.dart", ... ... }; - Read the source file using the source mapping array instead of relying on a generated buffer containing the sources - Modify the gyp files to ensure that all libraries are read directly from the sources. This CL does not change the patch part yet. Remove the source concatentation step in the gypi files for all the core libraries. R=hausner@google.com, iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=22380

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -486 lines) Patch
M runtime/bin/dartutils.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 5 4 chunks +57 lines, -20 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 5 2 chunks +4 lines, -21 lines 0 comments Download
M runtime/bin/run_vm_tests.cc View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 5 2 chunks +33 lines, -1 line 0 comments Download
A + runtime/lib/corelib_sources.gypi View 0 chunks +-1 lines, --1 lines 0 comments Download
D runtime/lib/lib_sources.gypi View 1 2 3 4 5 1 chunk +0 lines, -57 lines 0 comments Download
A runtime/lib/libgen_in.cc View 1 chunk +13 lines, -0 lines 0 comments Download
A runtime/tools/gen_library_src_paths.py View 1 2 3 4 1 chunk +105 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap.h View 1 2 3 4 5 1 chunk +15 lines, -12 lines 0 comments Download
M runtime/vm/bootstrap.cc View 1 2 3 4 5 6 chunks +138 lines, -51 lines 0 comments Download
M runtime/vm/dart.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/heap.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/os_android.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/os_linux.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/vm.gypi View 1 2 3 4 5 24 chunks +101 lines, -315 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
siva
Anton, there is a small API change to Dart_Initialize and would require co-ordination with you.
7 years, 7 months ago (2013-05-01 22:09:56 UTC) #1
siva
7 years, 7 months ago (2013-05-01 22:56:14 UTC) #2
hausner
lgtm
7 years, 7 months ago (2013-05-01 23:07:30 UTC) #3
siva
7 years, 7 months ago (2013-05-02 00:37:55 UTC) #4
Ivan Posva
Can we make it in such a way that the different source files have the ...
7 years, 7 months ago (2013-05-02 21:42:58 UTC) #5
Ivan Posva
https://chromiumcodereview.appspot.com/14786012/diff/28001/runtime/vm/bootstrap.cc File runtime/vm/bootstrap.cc (right): https://chromiumcodereview.appspot.com/14786012/diff/28001/runtime/vm/bootstrap.cc#newcode207 runtime/vm/bootstrap.cc:207: // In the boot strap loader we do not ...
7 years, 7 months ago (2013-05-02 22:23:21 UTC) #6
siva
https://chromiumcodereview.appspot.com/14786012/diff/28001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://chromiumcodereview.appspot.com/14786012/diff/28001/runtime/bin/run_vm_tests.cc#newcode14 runtime/bin/run_vm_tests.cc:14: using dart::bin::DartUtils; On 2013/05/02 21:42:58, Ivan Posva wrote: > ...
7 years, 7 months ago (2013-05-03 01:58:32 UTC) #7
Ivan Posva
LGTM -ip https://chromiumcodereview.appspot.com/14786012/diff/43001/runtime/vm/bootstrap.cc File runtime/vm/bootstrap.cc (right): https://chromiumcodereview.appspot.com/14786012/diff/43001/runtime/vm/bootstrap.cc#newcode193 runtime/vm/bootstrap.cc:193: strings.SetAt(1, String::Handle(isolate, String::New("/"))); Symbols::Slash()
7 years, 7 months ago (2013-05-03 05:21:35 UTC) #8
siva
https://codereview.chromium.org/14786012/diff/43001/runtime/vm/bootstrap.cc File runtime/vm/bootstrap.cc (right): https://codereview.chromium.org/14786012/diff/43001/runtime/vm/bootstrap.cc#newcode193 runtime/vm/bootstrap.cc:193: strings.SetAt(1, String::Handle(isolate, String::New("/"))); On 2013/05/03 05:21:35, Ivan Posva wrote: ...
7 years, 7 months ago (2013-05-03 17:03:08 UTC) #9
siva
7 years, 7 months ago (2013-05-03 18:12:37 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 manually as r22380 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698