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

Side by Side Diff: runtime/lib/core_patch.dart

Issue 2684033006: Move _fatal from dart:core to dart:_internal (Closed)
Patch Set: Created 3 years, 10 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/async_patch.dart ('k') | runtime/lib/internal_patch.dart » ('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) 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
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 }
OLDNEW
« no previous file with comments | « runtime/lib/async_patch.dart ('k') | runtime/lib/internal_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698