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

Side by Side Diff: sdk/lib/internal/internal.dart

Issue 2974073002: Revert "Don't use `LinkedList` in the core libraries anymore." (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | sdk/lib/internal/internal_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart._internal; 5 library dart._internal;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'dart:core' hide Symbol; 9 import 'dart:core' hide Symbol;
10 import 'dart:core' as core; 10 import 'dart:core' as core;
11 import 'dart:math' show Random; 11 import 'dart:math' show Random;
12 12
13 part 'iterable.dart'; 13 part 'iterable.dart';
14 part 'list.dart'; 14 part 'list.dart';
15 part 'print.dart'; 15 part 'print.dart';
16 part 'sort.dart'; 16 part 'sort.dart';
17 part 'symbol.dart'; 17 part 'symbol.dart';
18 part 'linked_list.dart';
19 18
20 // Powers of 10 up to 10^22 are representable as doubles. 19 // Powers of 10 up to 10^22 are representable as doubles.
21 // Powers of 10 above that are only approximate due to lack of precission. 20 // Powers of 10 above that are only approximate due to lack of precission.
22 // Used by double-parsing. 21 // Used by double-parsing.
23 const POWERS_OF_TEN = const [ 22 const POWERS_OF_TEN = const [
24 1.0, // 0 23 1.0, // 0
25 10.0, 24 10.0,
26 100.0, 25 100.0,
27 1000.0, 26 1000.0,
28 10000.0, 27 10000.0,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 88
90 /// Parses two hex digits in a string. 89 /// Parses two hex digits in a string.
91 /// 90 ///
92 /// Returns a negative value if either digit isn't valid. 91 /// Returns a negative value if either digit isn't valid.
93 int parseHexByte(String source, int index) { 92 int parseHexByte(String source, int index) {
94 assert(index + 2 <= source.length); 93 assert(index + 2 <= source.length);
95 int digit1 = hexDigitValue(source.codeUnitAt(index)); 94 int digit1 = hexDigitValue(source.codeUnitAt(index));
96 int digit2 = hexDigitValue(source.codeUnitAt(index + 1)); 95 int digit2 = hexDigitValue(source.codeUnitAt(index + 1));
97 return digit1 * 16 + digit2 - (digit2 & 256); 96 return digit1 * 16 + digit2 - (digit2 & 256);
98 } 97 }
OLDNEW
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | sdk/lib/internal/internal_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698