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

Issue 10834284: - Split Dart core libraries into shared sources and patch sources. (Closed)

Created:
8 years, 4 months ago by Ivan Posva
Modified:
8 years, 4 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Anders Johnsen, Mads Ager (google)
Visibility:
Public.

Description

- Split Dart core libraries into shared sources and patch sources. Currently this split goes along the runtime vs. library directories, eventually more shared code will be sitting in the shared library sources. Committed: https://code.google.com/p/dart/source/detail?r=10612

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -121 lines) Patch
A lib/empty_source.dart View 1 chunk +5 lines, -0 lines 0 comments Download
A lib/math_sources.gypi View 1 chunk +9 lines, -0 lines 0 comments Download
M vm/bootstrap.h View 1 2 1 chunk +12 lines, -5 lines 0 comments Download
M vm/bootstrap.cc View 1 2 1 chunk +30 lines, -36 lines 0 comments Download
M vm/bootstrap_nocorelib.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M vm/dart_api_impl_test.cc View 1 2 1 chunk +9 lines, -5 lines 0 comments Download
M vm/object.h View 1 2 5 chunks +12 lines, -15 lines 0 comments Download
M vm/object.cc View 1 2 8 chunks +72 lines, -49 lines 0 comments Download
M vm/parser.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M vm/vm.gypi View 1 2 9 chunks +207 lines, -6 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Ivan Posva
8 years, 4 months ago (2012-08-13 07:26:33 UTC) #1
siva
LGTM with one question regarding RegisterPrivateClass https://chromiumcodereview.appspot.com/10834284/diff/9001/lib/empty_source.dart File lib/empty_source.dart (right): https://chromiumcodereview.appspot.com/10834284/diff/9001/lib/empty_source.dart#newcode5 lib/empty_source.dart:5: // THIS FILE ...
8 years, 4 months ago (2012-08-13 18:46:12 UTC) #2
Ivan Posva
8 years, 4 months ago (2012-08-13 23:01:17 UTC) #3
https://chromiumcodereview.appspot.com/10834284/diff/9001/lib/empty_source.dart
File lib/empty_source.dart (right):

https://chromiumcodereview.appspot.com/10834284/diff/9001/lib/empty_source.da...
lib/empty_source.dart:5: // THIS FILE INTENTIONALLY LEFT BLANK.
On 2012/08/13 18:46:12, asiva wrote:
> FILE IS INTENT....

http://en.wikipedia.org/wiki/Intentionally_blank_page#Classified_documents

https://chromiumcodereview.appspot.com/10834284/diff/9001/vm/bootstrap.cc
File vm/bootstrap.cc (right):

https://chromiumcodereview.appspot.com/10834284/diff/9001/vm/bootstrap.cc#new...
vm/bootstrap.cc:45: const char* url = patch ? "dart:match-patch" : "dart:math";
On 2012/08/13 18:46:12, asiva wrote:
> math_patch ?

Done.

https://chromiumcodereview.appspot.com/10834284/diff/9001/vm/object.cc
File vm/object.cc (right):

https://chromiumcodereview.appspot.com/10834284/diff/9001/vm/object.cc#newcod...
vm/object.cc:448: cls.set_script(script);
On 2012/08/13 18:46:12, asiva wrote:
> Why is it ok to set the script here in the case of private classes?

Done.

https://chromiumcodereview.appspot.com/10834284/diff/9001/vm/object.h
File vm/object.h (right):

https://chromiumcodereview.appspot.com/10834284/diff/9001/vm/object.h#newcode298
vm/object.h:298: const Library& lib);
On 2012/08/13 18:46:12, asiva wrote:
> We should probably move the two methods RegisterClass and RegisterPrivateClass
> as private methods so that we won't have some external code using it and end
up
> with classes registered in the library and not have a script associated with
it.

Done. Same for CreateAndRegisterInterface.

Powered by Google App Engine
This is Rietveld 408576698