OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library dart.fletch._system; | 5 library dart.fletch._system; |
6 | 6 |
7 import 'dart:_internal' hide Symbol; | 7 import 'dart:_internal' hide Symbol; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:fletch'; | 9 import 'dart:fletch'; |
10 import 'dart:math'; | 10 import 'dart:math'; |
11 | 11 |
12 part 'list.dart'; | 12 part 'list.dart'; |
13 part 'map.dart'; | 13 part 'map.dart'; |
14 part 'nsm.dart'; | 14 part 'nsm.dart'; |
15 | 15 |
16 const native = "native"; | 16 const native = "native"; |
17 | 17 |
| 18 const patch = "patch"; |
| 19 |
18 const bool enableBigint = | 20 const bool enableBigint = |
19 const bool.fromEnvironment('fletch.enable-bigint', defaultValue: true); | 21 const bool.fromEnvironment('fletch.enable-bigint', defaultValue: true); |
20 | 22 |
21 // These strings need to be kept in sync with the strings allocated | 23 // These strings need to be kept in sync with the strings allocated |
22 // for the raw failure objects in src/vm/program.cc. | 24 // for the raw failure objects in src/vm/program.cc. |
23 const wrongArgumentType = "Wrong argument type."; | 25 const wrongArgumentType = "Wrong argument type."; |
24 const indexOutOfBounds = "Index out of bounds."; | 26 const indexOutOfBounds = "Index out of bounds."; |
25 const illegalState = "Illegal state."; | 27 const illegalState = "Illegal state."; |
26 | 28 |
27 // This enum must be kept in sync with the Interpreter::InterruptKind | 29 // This enum must be kept in sync with the Interpreter::InterruptKind |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 80 } |
79 | 81 |
80 /// Make the current process yield. Either to allow other fibers to | 82 /// Make the current process yield. Either to allow other fibers to |
81 /// make progress or to terminate execution. | 83 /// make progress or to terminate execution. |
82 external yield(int reason); | 84 external yield(int reason); |
83 | 85 |
84 external get nativeError; | 86 external get nativeError; |
85 | 87 |
86 // Change execution to [coroutine], passing along [argument]. | 88 // Change execution to [coroutine], passing along [argument]. |
87 external coroutineChange(coroutine, argument); | 89 external coroutineChange(coroutine, argument); |
88 | |
89 const patch = "patch"; | |
OLD | NEW |