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

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

Issue 1971193002: Patches to support Dart VM patch files in dart2js. (Closed) Base URL: sso://user/ahe/dart-sdk@master
Patch Set: Created 4 years, 6 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 | « sdk/lib/developer/profiler.dart ('k') | sdk/lib/internal/symbol.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) 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;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class CodeUnits extends UnmodifiableListBase<int> { 52 class CodeUnits extends UnmodifiableListBase<int> {
53 /** The string that this is the code units of. */ 53 /** The string that this is the code units of. */
54 final String _string; 54 final String _string;
55 55
56 CodeUnits(this._string); 56 CodeUnits(this._string);
57 57
58 int get length => _string.length; 58 int get length => _string.length;
59 int operator[](int i) => _string.codeUnitAt(i); 59 int operator[](int i) => _string.codeUnitAt(i);
60 60
61 static String stringOf(CodeUnits u) => u._string; 61 static String stringOf(CodeUnits u) => u._string;
62
63 static final int cid = ClassID.getID(new CodeUnits(""));
62 } 64 }
65
66 class VMLibraryHooks {
67 // Example: "dart:isolate _Timer._factory"
68 static var timerFactory;
69
70 // Example: "dart:io _EventHandler._sendData"
71 static var eventHandlerSendData;
72
73 // A nullary closure that answers the current clock value in milliseconds.
74 // Example: "dart:io _EventHandler._timerMillisecondClock"
75 static var timerMillisecondClock;
76
77 // Implementation of Resource.readAsBytes.
78 static var resourceReadAsBytes;
79
80 // Implementation of package root/map provision.
81 static var packageRootString;
82 static var packageConfigString;
83 static var packageRootUriFuture;
84 static var packageConfigUriFuture;
85 static var resolvePackageUriFuture;
86
87 static var platformScript;
88 }
89
90 final bool is64Bit = _inquireIs64Bit();
91
92 external bool _inquireIs64Bit();
93
94 class ClassID {
95 external static int getID(Object value);
96
97 external static int get cidArray;
98
99 external static int get cidExternalOneByteString;
100
101 external static int get cidGrowableObjectArray;
102
103 external static int get cidImmutableArray;
104
105 external static int get cidOneByteString;
106
107 external static int get cidTwoByteString;
108
109 external static int get cidBigint;
110 }
OLDNEW
« no previous file with comments | « sdk/lib/developer/profiler.dart ('k') | sdk/lib/internal/symbol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698