| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import "dart:async"; | 5 import "dart:async"; |
| 6 import "dart:collection" show LinkedList, LinkedListEntry; | 6 import "dart:collection" show LinkedList, LinkedListEntry; |
| 7 import 'dart:convert' show ASCII, JSON; | 7 import 'dart:convert' show ASCII, JSON; |
| 8 import "dart:isolate"; | 8 import "dart:isolate"; |
| 9 import "dart:math"; | 9 import "dart:math"; |
| 10 import "dart:typed_data"; | 10 import "dart:typed_data"; |
| 11 import 'dart:_internal' as internal; | 11 import 'dart:_internal' as internal; |
| 12 | 12 |
| 13 // Equivalent of calling FATAL from C++ code. | |
| 14 _fatal(msg) native "DartCore_fatal"; | |
| 15 | |
| 16 // The members of this class are cloned and added to each class that | 13 // The members of this class are cloned and added to each class that |
| 17 // represents an enum type. | 14 // represents an enum type. |
| 18 class _EnumHelper { | 15 class _EnumHelper { |
| 19 String _name; | 16 String _name; |
| 20 String toString() => _name; | 17 String toString() => _name; |
| 21 int get hashCode => _name.hashCode; | 18 int get hashCode => _name.hashCode; |
| 22 } | 19 } |
| 23 | 20 |
| 24 // _SyncIterable and _syncIterator are used by the compiler to | 21 // _SyncIterable and _syncIterator are used by the compiler to |
| 25 // implement sync* generator functions. A sync* generator allocates | 22 // implement sync* generator functions. A sync* generator allocates |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 continue; | 73 continue; |
| 77 } | 74 } |
| 78 return true; | 75 return true; |
| 79 } | 76 } |
| 80 } | 77 } |
| 81 } | 78 } |
| 82 | 79 |
| 83 @patch class StackTrace { | 80 @patch class StackTrace { |
| 84 @patch static StackTrace get current native "StackTrace_current"; | 81 @patch static StackTrace get current native "StackTrace_current"; |
| 85 } | 82 } |
| OLD | NEW |