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

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

Issue 2220883004: Use metadata annotation @patch for patch classes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip Created 4 years, 4 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
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 patch List makeListFixedLength(List growableList) 5 @patch List makeListFixedLength(List growableList)
6 native "Internal_makeListFixedLength"; 6 native "Internal_makeListFixedLength";
7 7
8 patch List makeFixedListUnmodifiable(List fixedLengthList) 8 @patch List makeFixedListUnmodifiable(List fixedLengthList)
9 native "Internal_makeFixedListUnmodifiable"; 9 native "Internal_makeFixedListUnmodifiable";
10 10
11 class VMLibraryHooks { 11 class VMLibraryHooks {
12 // Example: "dart:isolate _Timer._factory" 12 // Example: "dart:isolate _Timer._factory"
13 static var timerFactory; 13 static var timerFactory;
14 14
15 // Example: "dart:io _EventHandler._sendData" 15 // Example: "dart:io _EventHandler._sendData"
16 static var eventHandlerSendData; 16 static var eventHandlerSendData;
17 17
18 // A nullary closure that answers the current clock value in milliseconds. 18 // A nullary closure that answers the current clock value in milliseconds.
19 // Example: "dart:io _EventHandler._timerMillisecondClock" 19 // Example: "dart:io _EventHandler._timerMillisecondClock"
20 static var timerMillisecondClock; 20 static var timerMillisecondClock;
21 21
22 // Implementation of Resource.readAsBytes. 22 // Implementation of Resource.readAsBytes.
23 static var resourceReadAsBytes; 23 static var resourceReadAsBytes;
24 24
25 // Implementation of package root/map provision. 25 // Implementation of package root/map provision.
26 static var packageRootString; 26 static var packageRootString;
27 static var packageConfigString; 27 static var packageConfigString;
28 static var packageRootUriFuture; 28 static var packageRootUriFuture;
29 static var packageConfigUriFuture; 29 static var packageConfigUriFuture;
30 static var resolvePackageUriFuture; 30 static var resolvePackageUriFuture;
31 31
32 static var platformScript; 32 static var platformScript;
33 } 33 }
34 34
35 patch class CodeUnits { 35 @patch class CodeUnits {
36 static final int cid = ClassID.getID(new CodeUnits("")); 36 static final int cid = ClassID.getID(new CodeUnits(""));
37 } 37 }
38 38
39 final bool is64Bit = _inquireIs64Bit(); 39 final bool is64Bit = _inquireIs64Bit();
40 40
41 bool _inquireIs64Bit() native "Internal_inquireIs64Bit"; 41 bool _inquireIs64Bit() native "Internal_inquireIs64Bit";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698