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

Unified Diff: pkg/analyzer/lib/src/summary/flat_buffers.dart

Issue 1581773015: Fix dart2js build - don't use Int64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/flat_buffers.dart
diff --git a/pkg/analyzer/lib/src/summary/flat_buffers.dart b/pkg/analyzer/lib/src/summary/flat_buffers.dart
index 7480c26238fe38017f37bebf6c6845193dd315e3..65e7c28b1a13cc9d4fc6b7d30261580b8164f0cf 100644
--- a/pkg/analyzer/lib/src/summary/flat_buffers.dart
+++ b/pkg/analyzer/lib/src/summary/flat_buffers.dart
@@ -62,8 +62,6 @@ class BufferPointer {
int _getUint32([int delta = 0]) =>
_buffer.getUint32(_offset + delta, Endianness.LITTLE_ENDIAN);
- int _getUint64([int delta = 0]) =>
- _buffer.getUint64(_offset + delta, Endianness.LITTLE_ENDIAN);
/**
* If the [byteList] is already a [Uint8List] return it.
@@ -314,7 +312,7 @@ class Builder {
_prepare(8, 1 + values.length);
Offset result = new Offset(_tail);
int tail = _tail;
- _setUint64AtTail(_buf, tail, values.length);
+ _setUint32AtTail(_buf, tail, values.length);
tail -= 8;
for (double value in values) {
_setFloat64AtTail(_buf, tail, value);
@@ -419,10 +417,6 @@ class Builder {
static void _setUint32AtTail(ByteData _buf, int tail, int x) {
_buf.setUint32(_buf.lengthInBytes - tail, x, Endianness.LITTLE_ENDIAN);
}
-
- static void _setUint64AtTail(ByteData _buf, int tail, int x) {
- _buf.setUint64(_buf.lengthInBytes - tail, x, Endianness.LITTLE_ENDIAN);
- }
}
/**
@@ -580,7 +574,7 @@ class _FbFloat64List extends _FbList<double> {
@override
int get length {
- _length ??= bp._getUint64();
+ _length ??= bp._getUint32();
return _length;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698