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

Issue 2571563005: Turn the VM's dart:typed_data into a patch (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

Turn the VM's dart:typed_data into a patch Before, the VM's dart:typed_data was a complete replacement of the SDK's dart:typed_data implementation instead of a patch. This is unlike all the other SDK libraries. This difference requires special-casing for dart:typed_data in tools that handle the SDK libraries (e.g., the Analyzer's patching support, the GN build). This change makes dart:typed_data back into a patch to the SDK's implementation. It reintroduces a distinction between abstract interface and concrete implementation classes, so there are more classes. BUG= R=fschneider@google.com, vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/a9b906d319c32525a0600c75c008c92753591d86 Committed: https://github.com/dart-lang/sdk/commit/d9f80a9ac16f7a55ddf1b5a1791b01c93beba8f4

Patch Set 1 #

Total comments: 2

Patch Set 2 : Tests pass. #

Total comments: 6

Patch Set 3 : Update GN build. #

Patch Set 4 : Fix the GN patched_sdk build. #

Patch Set 5 : Fix interface/implementation type mismatch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+970 lines, -6312 lines) Patch
D runtime/lib/typed_data.dart View 1 chunk +0 lines, -4258 lines 0 comments Download
A + runtime/lib/typed_data_patch.dart View 68 chunks +683 lines, -1843 lines 0 comments Download
M runtime/lib/typed_data_sources.gypi View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 2 chunks +28 lines, -28 lines 0 comments Download
M runtime/observatory/tests/service/get_object_rpc_test.dart View 1 8 chunks +16 lines, -16 lines 0 comments Download
M runtime/vm/BUILD.gn View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M runtime/vm/bootstrap.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/bootstrap.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M runtime/vm/gypi_contents.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/method_recognizer.h View 1 2 3 chunks +104 lines, -95 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 3 chunks +23 lines, -17 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/profiler_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 2 chunks +19 lines, -16 lines 0 comments Download
M runtime/vm/vm.gypi View 9 chunks +78 lines, -10 lines 0 comments Download
M tools/patch_sdk.dart View 1 1 chunk +1 line, -8 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Kevin Millikin (Google)
Context: I want to use the analyzer-based front end to parse the SDK library implementations. ...
4 years ago (2016-12-15 14:27:05 UTC) #2
Florian Schneider
General comments/questions: 1. I like the objective of this CL since I'm all for making ...
4 years ago (2016-12-15 17:38:00 UTC) #3
Florian Schneider
https://codereview.chromium.org/2571563005/diff/20001/runtime/lib/typed_data_patch.dart File runtime/lib/typed_data_patch.dart (right): https://codereview.chromium.org/2571563005/diff/20001/runtime/lib/typed_data_patch.dart#newcode1937 runtime/lib/typed_data_patch.dart:1937: class _Float32x4 implements Float32x4 { @patch class Float32x4 { ...
4 years ago (2016-12-16 22:20:37 UTC) #4
Kevin Millikin (Google)
Thanks for the review, Florian. https://codereview.chromium.org/2571563005/diff/20001/runtime/lib/typed_data_patch.dart File runtime/lib/typed_data_patch.dart (right): https://codereview.chromium.org/2571563005/diff/20001/runtime/lib/typed_data_patch.dart#newcode1937 runtime/lib/typed_data_patch.dart:1937: class _Float32x4 implements Float32x4 ...
4 years ago (2016-12-19 12:20:50 UTC) #5
Florian Schneider
Lgtm. https://codereview.chromium.org/2571563005/diff/20001/runtime/lib/typed_data_patch.dart File runtime/lib/typed_data_patch.dart (right): https://codereview.chromium.org/2571563005/diff/20001/runtime/lib/typed_data_patch.dart#newcode722 runtime/lib/typed_data_patch.dart:722: class Int8List { Why is the 'abstract' modifier ...
4 years ago (2016-12-19 18:52:09 UTC) #6
Kevin Millikin (Google)
Committed patchset #4 (id:60001) manually as a9b906d319c32525a0600c75c008c92753591d86 (presubmit successful).
4 years ago (2016-12-21 07:35:02 UTC) #8
Kevin Millikin (Google)
This was reverted due to debug build checked mode failures. The change did not correctly ...
4 years ago (2016-12-21 14:17:00 UTC) #10
Vyacheslav Egorov (Google)
lgtm
4 years ago (2016-12-21 14:44:38 UTC) #11
Kevin Millikin (Google)
4 years ago (2016-12-22 09:57:32 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
d9f80a9ac16f7a55ddf1b5a1791b01c93beba8f4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698