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

Issue 2564383002: Make some VM libraries patch cleanly using the analyzer. (Closed)

Created:
4 years ago by Kevin Millikin (Google)
Modified:
4 years ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make some VM libraries patch cleanly using the analyzer. Modify the following VM dart: library patches: collection, convert, developer, _internal, isolate, math, mirrors, profiler, vmservice_io, _vmservice, _builtin, nativewrappers, and io. The modifications are mostly because: - Patches should not be able to introduce new public members to a library's API. In cases where the VM's patches introduce public members, the patches are rewritten to introduce private members instead. - Patches should not be able to replace arbitrary members, only ones declared external. In cases where the VM's patches replace arbitrary members, those members are declared external in the SDK sources and dart2js's patch files are rewritten to use the original SDK implementation. BUG= R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/9ab1f22b414d9df100b8e964223498627d33f913

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -46 lines) Patch
M runtime/lib/isolate_patch.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 12 chunks +19 lines, -20 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/internal_patch.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/js_runtime/lib/mirrors_patch.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/internal/symbol.dart View 1 chunk +1 line, -1 line 3 comments Download
M sdk/lib/mirrors/mirrors.dart View 1 chunk +1 line, -4 lines 1 comment Download
M sdk/lib/vmservice/asset.dart View 1 chunk +1 line, -17 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Kevin Millikin (Google)
These are the rest of the VM's dart: libraries except for dart:typed_data, which has an ...
4 years ago (2016-12-12 11:03:44 UTC) #2
Kevin Millikin (Google)
+sigmund
4 years ago (2016-12-14 11:00:44 UTC) #4
hausner
There are a few cases where an existing function in the to-be-patched class is replaced ...
4 years ago (2016-12-14 23:35:41 UTC) #5
Siggi Cherem (dart-lang)
dart2js library changes lgtm https://codereview.chromium.org/2564383002/diff/1/sdk/lib/internal/symbol.dart File sdk/lib/internal/symbol.dart (right): https://codereview.chromium.org/2564383002/diff/1/sdk/lib/internal/symbol.dart#newcode117 sdk/lib/internal/symbol.dart:117: external toString(); On 2016/12/14 23:35:40, ...
4 years ago (2016-12-15 00:31:46 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/2564383002/diff/1/sdk/lib/internal/symbol.dart File sdk/lib/internal/symbol.dart (right): https://codereview.chromium.org/2564383002/diff/1/sdk/lib/internal/symbol.dart#newcode117 sdk/lib/internal/symbol.dart:117: external toString(); That's http://dartbug.com/13596 - the VM isn't validating ...
4 years ago (2016-12-15 07:55:42 UTC) #7
Kevin Millikin (Google)
4 years ago (2016-12-15 10:30:27 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
9ab1f22b414d9df100b8e964223498627d33f913 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698