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

Unified Diff: pkg/analyzer/tool/summary/build_sdk_summaries.dart

Issue 1792523002: Use specialized _FbUint8List and Uint8ListReader. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/src/summary/flat_buffers_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/tool/summary/build_sdk_summaries.dart
diff --git a/pkg/analyzer/tool/summary/build_sdk_summaries.dart b/pkg/analyzer/tool/summary/build_sdk_summaries.dart
index 6cd5fb5f14227e333055e9e0173f463502aead0a..4f5db1e27b872b55aab3564a0c50aa494ef92415 100644
--- a/pkg/analyzer/tool/summary/build_sdk_summaries.dart
+++ b/pkg/analyzer/tool/summary/build_sdk_summaries.dart
@@ -133,10 +133,9 @@ _Output _buildMultipleOutputs(String sdkPath) {
*/
void _extractSingleOutput(String inputPath, int field, String outputPath) {
List<int> bytes = new File(inputPath).readAsBytesSync();
- fb.BufferPointer bp = new fb.BufferPointer.fromBytes(bytes);
- fb.BufferPointer table = bp.derefObject();
- List<int> fieldBytes =
- const fb.ListReader(const fb.Uint8Reader()).vTableGet(table, field);
+ fb.BufferPointer root = new fb.BufferPointer.fromBytes(bytes);
+ fb.BufferPointer table = root.derefObject();
+ List<int> fieldBytes = const fb.Uint8ListReader().vTableGet(table, field);
new File(outputPath).writeAsBytesSync(fieldBytes, mode: FileMode.WRITE_ONLY);
}
« no previous file with comments | « pkg/analyzer/test/src/summary/flat_buffers_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698