mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[vm/precomp] Fix name of vm:entry-point.
Change-Id: I907e59a9df9407f924c0518a185d5b28ab46e381 Cq-Include-Trybots: luci.dart.try:vm-kernel-win-release-x64-try,vm-kernel-optcounter-threshold-linux-release-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-release-simarm-try,vm-kernel-precomp-linux-release-simarm64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-win-release-x64-try Reviewed-on: https://dart-review.googlesource.com/69971 Commit-Queue: Samir Jindel <sjindel@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
parent
e4bd67028f
commit
5572df1458
|
@ -31,6 +31,9 @@ abstract class EntryPointsListener {
|
|||
|
||||
enum PragmaEntryPointType { Always, GetterOnly, SetterOnly }
|
||||
|
||||
const kEntryPointPragmaName = "vm:entry-point";
|
||||
const kNativeMethodPragmaName = "vm:native-method";
|
||||
|
||||
abstract class EntryPointsAnnotationMatcher {
|
||||
PragmaEntryPointType annotationsDefineRoot(List<Expression> annotations);
|
||||
}
|
||||
|
@ -47,7 +50,7 @@ class ConstantEntryPointsAnnotationMatcher
|
|||
Constant name = constant.fieldValues[coreTypes.pragmaName.reference];
|
||||
assertx(name != null);
|
||||
if (name is! StringConstant ||
|
||||
(name as StringConstant).value != "vm.entry-point") {
|
||||
(name as StringConstant).value != kEntryPointPragmaName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -63,7 +66,7 @@ class ConstantEntryPointsAnnotationMatcher
|
|||
} else if (options.value == "set") {
|
||||
return PragmaEntryPointType.SetterOnly;
|
||||
} else {
|
||||
throw "Error: string directive to @pragma('vm.entry-point', ...) must be either 'get' or 'set'.";
|
||||
throw "Error: string directive to @pragma('$kEntryPointPragmaName', ...) must be either 'get' or 'set'.";
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
@ -39,7 +39,7 @@ class ExpressionEntryPointsAnnotationMatcher
|
|||
}
|
||||
|
||||
var argument = annotation.arguments.positional[0];
|
||||
return argument is StringLiteral && argument.value == "vm.entry-point";
|
||||
return argument is StringLiteral && argument.value == kEntryPointPragmaName;
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -28,18 +28,18 @@ void _print(arg) {
|
|||
_printString(arg.toString());
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_getPrintClosure() => _print;
|
||||
|
||||
// Asynchronous loading of resources.
|
||||
// The embedder forwards loading requests to the service isolate.
|
||||
|
||||
// A port for communicating with the service isolate for I/O.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
SendPort _loadPort;
|
||||
|
||||
// The isolateId used to communicate with the service isolate for I/O.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
int _isolateId;
|
||||
|
||||
// Requests made to the service isolate over the load port.
|
||||
|
@ -140,7 +140,7 @@ _enforceTrailingSlash(uri) {
|
|||
|
||||
// Embedder Entrypoint:
|
||||
// The embedder calls this method with the current working directory.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _setWorkingDirectory(String cwd) {
|
||||
if (!_setupCompleted) {
|
||||
_setupHooks();
|
||||
|
@ -156,7 +156,7 @@ void _setWorkingDirectory(String cwd) {
|
|||
|
||||
// Embedder Entrypoint:
|
||||
// The embedder calls this method with a custom package root.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
String _setPackageRoot(String packageRoot) {
|
||||
if (!_setupCompleted) {
|
||||
_setupHooks();
|
||||
|
@ -187,7 +187,7 @@ String _setPackageRoot(String packageRoot) {
|
|||
}
|
||||
|
||||
// Embedder Entrypoint:
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
String _setPackagesMap(String packagesParam) {
|
||||
if (!_setupCompleted) {
|
||||
_setupHooks();
|
||||
|
@ -219,7 +219,7 @@ String _setPackagesMap(String packagesParam) {
|
|||
|
||||
// Resolves the script uri in the current working directory iff the given uri
|
||||
// did not specify a scheme (e.g. a path to a script file on the command line).
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
String _resolveScriptUri(String scriptName) {
|
||||
if (_traceLoading) {
|
||||
_log("Resolving script: $scriptName");
|
||||
|
@ -248,7 +248,7 @@ String _resolveScriptUri(String scriptName) {
|
|||
|
||||
// Embedder Entrypoint (gen_snapshot):
|
||||
// Resolve relative paths relative to working directory.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
String _resolveInWorkingDirectory(String fileName) {
|
||||
if (!_setupCompleted) {
|
||||
_setupHooks();
|
||||
|
@ -305,7 +305,7 @@ String _filePathFromUri(String userUri) {
|
|||
}
|
||||
|
||||
// Embedder Entrypoint.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_libraryFilePath(String libraryUri) {
|
||||
if (!_setupCompleted) {
|
||||
_setupHooks();
|
||||
|
@ -321,7 +321,7 @@ _libraryFilePath(String libraryUri) {
|
|||
}
|
||||
|
||||
// Register callbacks and hooks with the rest of the core libraries.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_setupHooks() {
|
||||
_setupCompleted = true;
|
||||
VMLibraryHooks.resourceReadAsBytes = _resourceReadAsBytes;
|
||||
|
|
|
@ -55,7 +55,7 @@ class _IOCrypto {
|
|||
static Uint8List getRandomBytes(int count) native "Crypto_GetRandomBytes";
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_setupHooks() {
|
||||
VMLibraryHooks.eventHandlerSendData = _EventHandler._sendData;
|
||||
VMLibraryHooks.timerMillisecondClock = _EventHandler._timerMillisecondClock;
|
||||
|
|
|
@ -67,5 +67,5 @@ Uri _uriBaseClosure() {
|
|||
return new Uri.directory(result);
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_getUriBaseClosure() => _uriBaseClosure;
|
||||
|
|
|
@ -414,7 +414,7 @@ class _FSEventStreamFileSystemWatcher extends _FileSystemWatcher {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) {
|
||||
return new Uint8List.view(source.buffer, offsetInBytes, length);
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ class _NamespaceImpl extends NativeFieldWrapperClass1 implements _Namespace {
|
|||
@patch
|
||||
class _Namespace {
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static void _setupNamespace(var namespace) {
|
||||
_NamespaceImpl._setupNamespace(namespace);
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class _Platform {
|
|||
static Uri _script() => VMLibraryHooks.platformScript;
|
||||
|
||||
// This script singleton is written to by the embedder if applicable.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static void set _nativeScript(String path) {
|
||||
VMLibraryHooks.platformScript = (() {
|
||||
if (path.startsWith('http:') ||
|
||||
|
|
|
@ -129,7 +129,7 @@ class _SignalController {
|
|||
native "Process_ClearSignalHandler";
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
Function _getWatchSignalInternal() => _ProcessUtils._watchSignalInternal;
|
||||
|
||||
@patch
|
||||
|
@ -193,9 +193,9 @@ class ProcessInfo {
|
|||
}
|
||||
|
||||
class _ProcessStartStatus {
|
||||
@pragma("vm.entry-point", "set")
|
||||
@pragma("vm:entry-point", "set")
|
||||
int _errorCode; // Set to OS error code if process start failed.
|
||||
@pragma("vm.entry-point", "set")
|
||||
@pragma("vm:entry-point", "set")
|
||||
String _errorMessage; // Set to OS error message if process start failed.
|
||||
}
|
||||
|
||||
|
@ -578,8 +578,7 @@ Future<ProcessResult> _runNonInteractiveProcess(
|
|||
Encoding stdoutEncoding,
|
||||
Encoding stderrEncoding) {
|
||||
// Start the underlying process.
|
||||
return Process
|
||||
.start(path, arguments,
|
||||
return Process.start(path, arguments,
|
||||
workingDirectory: workingDirectory,
|
||||
environment: environment,
|
||||
includeParentEnvironment: includeParentEnvironment,
|
||||
|
|
|
@ -20,7 +20,7 @@ class _SecureFilter {
|
|||
@patch
|
||||
class X509Certificate {
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory X509Certificate._() => new _X509CertificateImpl();
|
||||
}
|
||||
|
||||
|
@ -68,9 +68,9 @@ class _SecureFilterImpl extends NativeFieldWrapperClass1
|
|||
// Performance is improved if a full buffer of plaintext fits
|
||||
// in the encrypted buffer, when encrypted.
|
||||
// SIZE and ENCRYPTED_SIZE are referenced from C++.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static final int SIZE = 8 * 1024;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static final int ENCRYPTED_SIZE = 10 * 1024;
|
||||
|
||||
_SecureFilterImpl() {
|
||||
|
@ -120,7 +120,7 @@ class _SecureFilterImpl extends NativeFieldWrapperClass1
|
|||
// This is a security issue, as it exposes a raw pointer to Dart code.
|
||||
int _pointer() native "SecureSocket_FilterPointer";
|
||||
|
||||
@pragma("vm.entry-point", "get")
|
||||
@pragma("vm:entry-point", "get")
|
||||
List<_ExternalBuffer> buffers;
|
||||
}
|
||||
|
||||
|
|
|
@ -1905,7 +1905,7 @@ class _RawDatagramSocket extends Stream<RawSocketEvent>
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
Datagram _makeDatagram(
|
||||
List<int> data, String address, List<int> in_addr, int port) {
|
||||
return new Datagram(data, new _InternetAddress(address, null, in_addr), port);
|
||||
|
|
|
@ -62,9 +62,9 @@ class FileRequest {
|
|||
FileRequest(this.sp, this.tag, this.uri, this.resolvedUri, this.libraryUrl);
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _traceLoading = false;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _deterministic = false;
|
||||
|
||||
// State associated with the isolate that is used for loading.
|
||||
|
|
|
@ -16,21 +16,21 @@ part 'loader.dart';
|
|||
part 'server.dart';
|
||||
|
||||
// The TCP ip/port that the HTTP server listens on.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
int _port;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
String _ip;
|
||||
// Should the HTTP server auto start?
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _autoStart;
|
||||
// Should the HTTP server run in devmode?
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _originCheckDisabled;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _isWindows = false;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _isFuchsia = false;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
var _signalWatch;
|
||||
var _signalSubscription;
|
||||
|
||||
|
@ -227,7 +227,7 @@ _registerSignalHandler() {
|
|||
_signalSubscription = _signalWatch(ProcessSignal.SIGQUIT).listen(_onSignal);
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point", !const bool.fromEnvironment("dart.vm.product"))
|
||||
@pragma("vm:entry-point", !const bool.fromEnvironment("dart.vm.product"))
|
||||
main() {
|
||||
// Set embedder hooks.
|
||||
VMServiceEmbedderHooks.cleanup = cleanupCallback;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// part of "core_patch.dart";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _List<E> extends FixedLengthListBase<E> {
|
||||
factory _List(length) native "List_allocate";
|
||||
|
||||
|
@ -122,7 +122,7 @@ class _List<E> extends FixedLengthListBase<E> {
|
|||
// classes (and inline cache misses) versus a field in the native
|
||||
// implementation (checks when modifying). We should keep watching
|
||||
// the inline cache misses.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ImmutableList<E> extends UnmodifiableListBase<E> {
|
||||
factory _ImmutableList._uninstantiable() {
|
||||
throw new UnsupportedError(
|
||||
|
|
|
@ -52,7 +52,7 @@ class List<E> {
|
|||
|
||||
// Factory constructing a mutable List from a parser generated List literal.
|
||||
// [elements] contains elements that are already type checked.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory List._fromLiteral(List elements) {
|
||||
if (elements.isEmpty) {
|
||||
return new _GrowableList<E>(0);
|
||||
|
|
|
@ -120,7 +120,7 @@ void _asyncStarListenHelper(var object, var awaiter) {
|
|||
object._awaiter = awaiter;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _asyncStarMoveNextHelper(var stream) {
|
||||
if (stream is! _StreamImpl) {
|
||||
return;
|
||||
|
@ -135,7 +135,7 @@ void _asyncStarMoveNextHelper(var stream) {
|
|||
|
||||
// _AsyncStarStreamController is used by the compiler to implement
|
||||
// async* generator functions.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _AsyncStarStreamController<T> {
|
||||
StreamController<T> controller;
|
||||
Function asyncStarBody;
|
||||
|
@ -290,7 +290,7 @@ class _StreamImpl<T> {
|
|||
Function _generator;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _completeOnAsyncReturn(Completer completer, Object value) {
|
||||
completer.complete(value);
|
||||
}
|
||||
|
@ -300,11 +300,11 @@ void _completeOnAsyncReturn(Completer completer, Object value) {
|
|||
Object _asyncStackTraceHelper(Function async_op)
|
||||
native "StackTrace_asyncStackTraceHelper";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _clearAsyncThreadStackTrace()
|
||||
native "StackTrace_clearAsyncThreadStackTrace";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _setAsyncThreadStackTrace(StackTrace stackTrace)
|
||||
native "StackTrace_setAsyncThreadStackTrace";
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// part of "core_patch.dart";
|
||||
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class bool {
|
||||
@patch
|
||||
const factory bool.fromEnvironment(String name, {bool defaultValue: false})
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
// This function takes care of rehashing of the linked hashmaps in [objects]. We
|
||||
// do this eagerly after snapshot deserialization.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _rehashObjects(List objects) {
|
||||
final int length = objects.length;
|
||||
for (int i = 0; i < length; ++i) {
|
||||
|
@ -131,7 +131,7 @@ class _IdenticalAndIdentityHashCode {
|
|||
}
|
||||
|
||||
// VM-internalized implementation of a default-constructed LinkedHashMap.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _InternalLinkedHashMap<K, V> extends _HashVMBase
|
||||
with
|
||||
MapMixin<K, V>,
|
||||
|
|
|
@ -68,7 +68,7 @@ _registerExtension(String method, ServiceExtensionHandler handler)
|
|||
native "Developer_registerExtension";
|
||||
|
||||
// This code is only invoked when there is no other Dart code on the stack.
|
||||
@pragma("vm.entry-point", !const bool.fromEnvironment("dart.vm.product"))
|
||||
@pragma("vm:entry-point", !const bool.fromEnvironment("dart.vm.product"))
|
||||
_runExtension(
|
||||
ServiceExtensionHandler handler,
|
||||
String method,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// part of "core_patch.dart";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Double implements double {
|
||||
factory _Double.fromInteger(int value) native "Double_doubleFromInteger";
|
||||
|
||||
|
|
|
@ -19,19 +19,19 @@ class Error {
|
|||
@patch
|
||||
StackTrace get stackTrace => _stackTrace;
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
StackTrace _stackTrace;
|
||||
}
|
||||
|
||||
class _AssertionError extends Error implements AssertionError {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_AssertionError._create(
|
||||
this._failedAssertion, this._url, this._line, this._column, this.message);
|
||||
|
||||
// AssertionError_throwNew in errors.cc fishes the assertion source code
|
||||
// out of the script. It expects a Dart stack frame from class
|
||||
// _AssertionError. Thus we need a Dart stub that calls the native code.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static _throwNew(int assertionStart, int assertionEnd, Object message) {
|
||||
_doThrowNew(assertionStart, assertionEnd, message);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ class _AssertionError extends Error implements AssertionError {
|
|||
static _doThrowNew(int assertionStart, int assertionEnd, Object message)
|
||||
native "AssertionError_throwNew";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static _evaluateAssertion(condition) {
|
||||
if (identical(condition, true) || identical(condition, false)) {
|
||||
return condition;
|
||||
|
@ -81,7 +81,7 @@ class _AssertionError extends Error implements AssertionError {
|
|||
}
|
||||
|
||||
class _TypeError extends _AssertionError implements TypeError {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_TypeError._create(String url, int line, int column, String errorMsg)
|
||||
: super._create("is assignable", url, line, column, errorMsg);
|
||||
|
||||
|
@ -104,7 +104,7 @@ class _TypeError extends _AssertionError implements TypeError {
|
|||
}
|
||||
|
||||
class _CastError extends Error implements CastError {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_CastError._create(this._url, this._line, this._column, this._errorMsg);
|
||||
|
||||
// A CastError is allocated by TypeError._throwNew() when dst_name equals
|
||||
|
@ -122,7 +122,7 @@ class _CastError extends Error implements CastError {
|
|||
@patch
|
||||
class FallThroughError {
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
FallThroughError._create(String url, int line)
|
||||
: _url = url,
|
||||
_line = line;
|
||||
|
@ -141,7 +141,7 @@ class FallThroughError {
|
|||
}
|
||||
|
||||
class _InternalError {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const _InternalError(this._msg);
|
||||
String toString() => "InternalError: '${_msg}'";
|
||||
final String _msg;
|
||||
|
@ -163,7 +163,7 @@ class CyclicInitializationError {
|
|||
|
||||
@patch
|
||||
class AbstractClassInstantiationError {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
AbstractClassInstantiationError._create(
|
||||
this._className, this._url, this._line);
|
||||
|
||||
|
@ -261,7 +261,7 @@ class NoSuchMethodError {
|
|||
// _throwNew above, taking a TypeArguments object rather than an unpacked list
|
||||
// of types, as well as a list of all arguments and a list of names, rather
|
||||
// than a separate list of positional arguments and a map of named arguments.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
NoSuchMethodError._withType(
|
||||
this._receiver,
|
||||
String memberName,
|
||||
|
@ -580,14 +580,14 @@ class NoSuchMethodError {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _CompileTimeError extends Error {
|
||||
final String _errorMsg;
|
||||
_CompileTimeError(this._errorMsg);
|
||||
String toString() => _errorMsg;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
dynamic _classRangeAssert(int position, dynamic instance, _Type type, int cid,
|
||||
int lowerLimit, int upperLimit) {
|
||||
if ((cid < lowerLimit || cid > upperLimit) && instance != null) {
|
||||
|
@ -597,7 +597,7 @@ dynamic _classRangeAssert(int position, dynamic instance, _Type type, int cid,
|
|||
return instance;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
dynamic _classIdEqualsAssert(
|
||||
int position, dynamic instance, _Type type, int cid, int otherCid) {
|
||||
if (cid != otherCid && instance != null) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// part of "core_patch.dart";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Closure implements Function {
|
||||
bool operator ==(Object other) native "Closure_equals";
|
||||
|
||||
|
@ -29,15 +29,15 @@ class _Closure implements Function {
|
|||
// deferred objects is properly initialized.
|
||||
// Caution: These fields are not Dart instances, but VM objects. Their Dart
|
||||
// names do not need to match the C++ names, but they must be private.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
var _instantiator_type_arguments;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
var _function_type_arguments;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
var _delayed_type_arguments;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
var _function;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
var _context;
|
||||
|
||||
// Note: _Closure objects are created by VM "magically", without invoking
|
||||
|
@ -47,6 +47,6 @@ class _Closure implements Function {
|
|||
// nullable and may incorrectly remove 'if (_hash == null)' in get:hashCode.
|
||||
// This initializer makes _hash field nullable even without constructor
|
||||
// compilation.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
var _hash = null;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// part of "core_patch.dart";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _GrowableList<T> extends ListBase<T> {
|
||||
void insert(int index, T element) {
|
||||
if ((index < 0) || (index > length)) {
|
||||
|
|
|
@ -8,5 +8,5 @@
|
|||
bool identical(Object a, Object b) native "Identical_comparison";
|
||||
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
int identityHashCode(Object object) => object._identityHashCode;
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
/// Immutable map class for compiler generated map literals.
|
||||
// TODO(lrn): Extend MapBase with UnmodifiableMapMixin when mixins
|
||||
// support forwarding const constructors.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ImmutableMap<K, V> implements Map<K, V> {
|
||||
final _ImmutableList _kvPairs;
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const _ImmutableMap._create(_ImmutableList keyValuePairs)
|
||||
: _kvPairs = keyValuePairs;
|
||||
|
||||
|
|
|
@ -451,7 +451,7 @@ abstract class _IntegerImplementation implements int {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Smi extends _IntegerImplementation implements _int64 {
|
||||
factory _Smi._uninstantiable() {
|
||||
throw new UnsupportedError("_Smi can only be allocated by the VM");
|
||||
|
@ -650,7 +650,7 @@ class _Smi extends _IntegerImplementation implements _int64 {
|
|||
}
|
||||
|
||||
// Represents integers that cannot be represented by Smi but fit into 64bits.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Mint extends _IntegerImplementation implements _int64 {
|
||||
factory _Mint._uninstantiable() {
|
||||
throw new UnsupportedError("_Mint can only be allocated by the VM");
|
||||
|
|
|
@ -68,7 +68,7 @@ final bool is64Bit = _inquireIs64Bit();
|
|||
|
||||
bool _inquireIs64Bit() native "Internal_inquireIs64Bit";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _classRangeCheck(int cid, int lowerLimit, int upperLimit) {
|
||||
return cid >= lowerLimit && cid <= upperLimit;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ class Lists {
|
|||
// function type arguments (may be null). The result is null if both input
|
||||
// vectors are null or is a newly allocated and canonicalized vector of length
|
||||
// 'totalLen'.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_prependTypeArguments(functionTypeArguments, parentTypeArguments, parentLen,
|
||||
totalLen) native "Internal_prependTypeArguments";
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ class _InvocationMirror implements Invocation {
|
|||
this._positionalArguments, this._namedArguments, this._isSuperInvocation,
|
||||
[this._delayedTypeArgumentsLen = 0]);
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static _allocateInvocationMirror(String functionName,
|
||||
List argumentsDescriptor, List arguments, bool isSuperInvocation,
|
||||
[int type = null]) {
|
||||
|
@ -189,7 +189,7 @@ class _InvocationMirror implements Invocation {
|
|||
// indicate 0 type arguments, but the actual number of type arguments are
|
||||
// passed in `delayedTypeArgumentsLen`. If any type arguments are available,
|
||||
// the type arguments vector will be the first entry in `arguments`.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static _allocateInvocationMirrorForClosure(
|
||||
String functionName,
|
||||
List argumentsDescriptor,
|
||||
|
|
|
@ -34,7 +34,7 @@ class Capability {
|
|||
factory Capability() => new _CapabilityImpl();
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _CapabilityImpl implements Capability {
|
||||
factory _CapabilityImpl() native "CapabilityImpl_factory";
|
||||
|
||||
|
@ -107,7 +107,7 @@ void _isolateScheduleImmediate(void callback()) {
|
|||
_pendingImmediateCallback = callback;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _runPendingImmediateCallback() {
|
||||
if (_pendingImmediateCallback != null) {
|
||||
var callback = _pendingImmediateCallback;
|
||||
|
@ -124,12 +124,12 @@ _ImmediateCallback _removePendingImmediateCallback() {
|
|||
|
||||
/// The embedder can execute this function to get hold of
|
||||
/// [_isolateScheduleImmediate] above.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
Function _getIsolateScheduleImmediateClosure() {
|
||||
return _isolateScheduleImmediate;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _RawReceivePortImpl implements RawReceivePort {
|
||||
factory _RawReceivePortImpl() native "RawReceivePortImpl_factory";
|
||||
|
||||
|
@ -156,14 +156,14 @@ class _RawReceivePortImpl implements RawReceivePort {
|
|||
_get_sendport() native "RawReceivePortImpl_get_sendport";
|
||||
|
||||
// Called from the VM to retrieve the handler for a message.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static _lookupHandler(int id) {
|
||||
var result = _handlerMap[id];
|
||||
return result;
|
||||
}
|
||||
|
||||
// Called from the VM to dispatch to the handler.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static void _handleMessage(Function handler, var message) {
|
||||
// TODO(floitsch): this relies on the fact that any exception aborts the
|
||||
// VM. Once we have non-fatal global exceptions we need to catch errors
|
||||
|
@ -194,10 +194,10 @@ class _RawReceivePortImpl implements RawReceivePort {
|
|||
static final Map _handlerMap = _initHandlerMap();
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _SendPortImpl implements SendPort {
|
||||
/*--- public interface ---*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void send(var message) {
|
||||
_sendInternal(message);
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ typedef _BinaryFunction(Null args, Null message);
|
|||
* initial message. Defers execution of the entry point until the
|
||||
* isolate is in the message loop.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _startMainIsolate(Function entryPoint, List<String> args) {
|
||||
_startIsolate(
|
||||
null, // no parent port
|
||||
|
@ -243,7 +243,7 @@ void _startMainIsolate(Function entryPoint, List<String> args) {
|
|||
* Takes the real entry point as argument and invokes it with the initial
|
||||
* message.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _startIsolate(
|
||||
SendPort parentPort,
|
||||
Function entryPoint,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// part of "core_patch.dart";
|
||||
|
||||
// This type corresponds to the VM-internal class LibraryPrefix.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _LibraryPrefix {
|
||||
bool _load() native "LibraryPrefix_load";
|
||||
Object _loadError() native "LibraryPrefix_loadError";
|
||||
|
@ -47,7 +47,7 @@ class _LibraryPrefix {
|
|||
var _outstandingLoadRequests = new List<List>();
|
||||
|
||||
// Called from the VM when an outstanding load request has finished.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_completeDeferredLoads() {
|
||||
// Determine which outstanding load requests have completed and complete
|
||||
// their completer (with an error or true). For outstanding load requests
|
||||
|
|
|
@ -11,7 +11,7 @@ class Map<K, V> {
|
|||
// The keys are at position 2*n and are already type checked by the parser
|
||||
// in checked mode.
|
||||
// The values are at position 2*n+1 and are not yet type checked.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory Map._fromLiteral(List elements) {
|
||||
var map = new LinkedHashMap<K, V>();
|
||||
var len = elements.length;
|
||||
|
|
|
@ -178,7 +178,7 @@ class Random {
|
|||
|
||||
class _Random implements Random {
|
||||
// Internal state of the random number generator.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
final Uint32List _state;
|
||||
static const _kSTATE_LO = 0;
|
||||
static const _kSTATE_HI = 1; // Unused in Dart code.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// part of "mirrors_patch.dart";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _MirrorReference {
|
||||
factory _MirrorReference._uninstantiable() {
|
||||
throw new UnsupportedError("class _MirrorReference cannot be instantiated");
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// part of "core_patch.dart";
|
||||
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class Null {
|
||||
static const _HASH_CODE = 2011; // The year Dart was announced and a prime.
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ int _getHash(obj) native "Object_getHash";
|
|||
void _setHash(obj, hash) native "Object_setHash";
|
||||
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class Object {
|
||||
// The VM has its own implementation of equals.
|
||||
@patch
|
||||
|
@ -42,7 +42,7 @@ class Object {
|
|||
static String _toString(obj) native "Object_toString";
|
||||
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
dynamic noSuchMethod(Invocation invocation) {
|
||||
// TODO(regis): Remove temp constructor identifier 'withInvocation'.
|
||||
throw new NoSuchMethodError.withInvocation(this, invocation);
|
||||
|
@ -51,21 +51,21 @@ class Object {
|
|||
@patch
|
||||
Type get runtimeType native "Object_runtimeType";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static bool _haveSameRuntimeType(a, b) native "Object_haveSameRuntimeType";
|
||||
|
||||
// Call this function instead of inlining instanceof, thus collecting
|
||||
// type feedback and reducing code size of unoptimized code.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _instanceOf(instantiatorTypeArguments, functionTypeArguments, type)
|
||||
native "Object_instanceOf";
|
||||
|
||||
// Group of functions for implementing fast simple instance of.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _simpleInstanceOf(type) native "Object_simpleInstanceOf";
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _simpleInstanceOfTrue(type) => true;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
bool _simpleInstanceOfFalse(type) => false;
|
||||
|
||||
// Call this function instead of inlining 'as', thus collecting type
|
||||
|
|
|
@ -19,5 +19,5 @@ void _unsupportedPrint(String line) {
|
|||
|
||||
// _printClosure can be overwritten by the embedder to supply a different
|
||||
// print implementation.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_PrintClosure _printClosure = _unsupportedPrint;
|
||||
|
|
|
@ -14,7 +14,7 @@ class UserTag {
|
|||
static UserTag get defaultTag => _getDefaultTag();
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _UserTag implements UserTag {
|
||||
factory _UserTag(String label) native "UserTag_new";
|
||||
String get label native "UserTag_label";
|
||||
|
|
|
@ -182,7 +182,7 @@ class _RegExpMatch implements Match {
|
|||
static const int _MATCH_PAIR = 2;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _RegExp implements RegExp {
|
||||
factory _RegExp(String pattern,
|
||||
{bool multiLine: false,
|
||||
|
|
|
@ -21,12 +21,12 @@ class _ScheduleImmediate {
|
|||
static _ScheduleImmediateClosure _closure;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _setScheduleImmediateClosure(_ScheduleImmediateClosure closure) {
|
||||
_ScheduleImmediate._closure = closure;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void _ensureScheduleImmediate() {
|
||||
_AsyncRun._scheduleImmediate(_startMicrotaskLoop);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// part of "core_patch.dart";
|
||||
|
||||
/// VM internal StackTrace implementation.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _StackTrace implements StackTrace {
|
||||
// toString() is overridden on the C++ side.
|
||||
}
|
||||
|
|
|
@ -795,7 +795,7 @@ abstract class _StringBase implements String {
|
|||
}
|
||||
|
||||
// Convert single object to string.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static String _interpolateSingle(Object o) {
|
||||
if (o is String) return o;
|
||||
final s = o.toString();
|
||||
|
@ -810,7 +810,7 @@ abstract class _StringBase implements String {
|
|||
* into a result string.
|
||||
* Modifies the input list if it contains non-`String` values.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static String _interpolate(final List values) {
|
||||
final numValues = values.length;
|
||||
int totalLength = 0;
|
||||
|
@ -923,7 +923,7 @@ abstract class _StringBase implements String {
|
|||
native "String_concatRange";
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _OneByteString extends _StringBase {
|
||||
factory _OneByteString._uninstantiable() {
|
||||
throw new UnsupportedError(
|
||||
|
@ -1227,7 +1227,7 @@ class _OneByteString extends _StringBase {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _TwoByteString extends _StringBase {
|
||||
factory _TwoByteString._uninstantiable() {
|
||||
throw new UnsupportedError(
|
||||
|
@ -1248,7 +1248,7 @@ class _TwoByteString extends _StringBase {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalOneByteString extends _StringBase {
|
||||
factory _ExternalOneByteString._uninstantiable() {
|
||||
throw new UnsupportedError(
|
||||
|
@ -1266,7 +1266,7 @@ class _ExternalOneByteString extends _StringBase {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalTwoByteString extends _StringBase {
|
||||
factory _ExternalTwoByteString._uninstantiable() {
|
||||
throw new UnsupportedError(
|
||||
|
|
|
@ -462,7 +462,7 @@ class _Timer implements Timer {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_setupHooks() {
|
||||
VMLibraryHooks.timerFactory = _Timer._factory;
|
||||
}
|
||||
|
|
|
@ -12,23 +12,23 @@ abstract class _AbstractType implements Type {
|
|||
}
|
||||
|
||||
// Equivalent of RawType.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Type extends _AbstractType {
|
||||
int get hashCode native "Type_getHashCode";
|
||||
}
|
||||
|
||||
// Equivalent of RawTypeRef.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _TypeRef extends _AbstractType {}
|
||||
|
||||
// Equivalent of RawTypeParameter.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _TypeParameter extends _AbstractType {}
|
||||
|
||||
// Equivalent of RawBoundedType.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _BoundedType extends _AbstractType {}
|
||||
|
||||
// Equivalent of RawMixinAppType.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _MixinAppType extends _AbstractType {}
|
||||
|
|
|
@ -36,14 +36,14 @@ import 'dart:math' show Random;
|
|||
@patch
|
||||
class ByteData implements TypedData {
|
||||
@patch
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory ByteData(int length) {
|
||||
final list = new Uint8List(length) as _TypedList;
|
||||
return new _ByteDataView(list, 0, length);
|
||||
}
|
||||
|
||||
// Called directly from C code.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory ByteData._view(_TypedList typedData, int offsetInBytes, int length) {
|
||||
return new _ByteDataView(typedData, offsetInBytes, length);
|
||||
}
|
||||
|
@ -1897,13 +1897,13 @@ abstract class _Float64x2ListMixin implements List<Float64x2> {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ByteBuffer implements ByteBuffer {
|
||||
final _TypedList _data;
|
||||
|
||||
_ByteBuffer(this._data);
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory _ByteBuffer._New(data) => new _ByteBuffer(data);
|
||||
|
||||
// Forward calls to _data.
|
||||
|
@ -2123,7 +2123,7 @@ class Int8List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int8List extends _TypedList with _IntListMixin implements Int8List {
|
||||
// Method(s) implementing List interface.
|
||||
int operator [](int index) {
|
||||
|
@ -2163,7 +2163,7 @@ class Uint8List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint8List extends _TypedList with _IntListMixin implements Uint8List {
|
||||
// Methods implementing List interface.
|
||||
int operator [](int index) {
|
||||
|
@ -2203,7 +2203,7 @@ class Uint8ClampedList {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint8ClampedList extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Uint8ClampedList {
|
||||
|
@ -2245,7 +2245,7 @@ class Int16List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int16List extends _TypedList with _IntListMixin implements Int16List {
|
||||
// Method(s) implementing List interface.
|
||||
int operator [](int index) {
|
||||
|
@ -2304,7 +2304,7 @@ class Uint16List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint16List extends _TypedList with _IntListMixin implements Uint16List {
|
||||
// Method(s) implementing the List interface.
|
||||
int operator [](int index) {
|
||||
|
@ -2363,7 +2363,7 @@ class Int32List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int32List extends _TypedList with _IntListMixin implements Int32List {
|
||||
// Method(s) implementing the List interface.
|
||||
int operator [](int index) {
|
||||
|
@ -2411,7 +2411,7 @@ class Uint32List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint32List extends _TypedList with _IntListMixin implements Uint32List {
|
||||
// Method(s) implementing the List interface.
|
||||
int operator [](int index) {
|
||||
|
@ -2459,7 +2459,7 @@ class Int64List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int64List extends _TypedList with _IntListMixin implements Int64List {
|
||||
// Method(s) implementing the List interface.
|
||||
int operator [](int index) {
|
||||
|
@ -2507,7 +2507,7 @@ class Uint64List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint64List extends _TypedList with _IntListMixin implements Uint64List {
|
||||
// Method(s) implementing the List interface.
|
||||
int operator [](int index) {
|
||||
|
@ -2555,7 +2555,7 @@ class Float32List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float32List extends _TypedList
|
||||
with _DoubleListMixin
|
||||
implements Float32List {
|
||||
|
@ -2605,7 +2605,7 @@ class Float64List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float64List extends _TypedList
|
||||
with _DoubleListMixin
|
||||
implements Float64List {
|
||||
|
@ -2655,7 +2655,7 @@ class Float32x4List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float32x4List extends _TypedList
|
||||
with _Float32x4ListMixin
|
||||
implements Float32x4List {
|
||||
|
@ -2704,7 +2704,7 @@ class Int32x4List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int32x4List extends _TypedList
|
||||
with _Int32x4ListMixin
|
||||
implements Int32x4List {
|
||||
|
@ -2753,7 +2753,7 @@ class Float64x2List {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float64x2List extends _TypedList
|
||||
with _Float64x2ListMixin
|
||||
implements Float64x2List {
|
||||
|
@ -2790,7 +2790,7 @@ class _Float64x2List extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalInt8Array extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Int8List {
|
||||
|
@ -2820,7 +2820,7 @@ class _ExternalInt8Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalUint8Array extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Uint8List {
|
||||
|
@ -2850,7 +2850,7 @@ class _ExternalUint8Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalUint8ClampedArray extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Uint8ClampedList {
|
||||
|
@ -2880,7 +2880,7 @@ class _ExternalUint8ClampedArray extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalInt16Array extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Int16List {
|
||||
|
@ -2919,7 +2919,7 @@ class _ExternalInt16Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalUint16Array extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Uint16List {
|
||||
|
@ -2958,7 +2958,7 @@ class _ExternalUint16Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalInt32Array extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Int32List {
|
||||
|
@ -2996,7 +2996,7 @@ class _ExternalInt32Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalUint32Array extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Uint32List {
|
||||
|
@ -3035,7 +3035,7 @@ class _ExternalUint32Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalInt64Array extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Int64List {
|
||||
|
@ -3074,7 +3074,7 @@ class _ExternalInt64Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalUint64Array extends _TypedList
|
||||
with _IntListMixin
|
||||
implements Uint64List {
|
||||
|
@ -3113,7 +3113,7 @@ class _ExternalUint64Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalFloat32Array extends _TypedList
|
||||
with _DoubleListMixin
|
||||
implements Float32List {
|
||||
|
@ -3152,7 +3152,7 @@ class _ExternalFloat32Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalFloat64Array extends _TypedList
|
||||
with _DoubleListMixin
|
||||
implements Float64List {
|
||||
|
@ -3191,7 +3191,7 @@ class _ExternalFloat64Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalFloat32x4Array extends _TypedList
|
||||
with _Float32x4ListMixin
|
||||
implements Float32x4List {
|
||||
|
@ -3230,7 +3230,7 @@ class _ExternalFloat32x4Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalInt32x4Array extends _TypedList
|
||||
with _Int32x4ListMixin
|
||||
implements Int32x4List {
|
||||
|
@ -3269,7 +3269,7 @@ class _ExternalInt32x4Array extends _TypedList
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ExternalFloat64x2Array extends _TypedList
|
||||
with _Float64x2ListMixin
|
||||
implements Float64x2List {
|
||||
|
@ -3327,7 +3327,7 @@ class Float32x4 {
|
|||
factory Float32x4.fromFloat64x2(Float64x2 v) native "Float32x4_fromFloat64x2";
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float32x4 implements Float32x4 {
|
||||
Float32x4 operator +(Float32x4 other) native "Float32x4_add";
|
||||
Float32x4 operator -() native "Float32x4_negate";
|
||||
|
@ -3378,7 +3378,7 @@ class Int32x4 {
|
|||
native "Int32x4_fromFloat32x4Bits";
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int32x4 implements Int32x4 {
|
||||
Int32x4 operator |(Int32x4 other) native "Int32x4_or";
|
||||
Int32x4 operator &(Int32x4 other) native "Int32x4_and";
|
||||
|
@ -3423,7 +3423,7 @@ class Float64x2 {
|
|||
factory Float64x2.fromFloat32x4(Float32x4 v) native "Float64x2_fromFloat32x4";
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float64x2 implements Float64x2 {
|
||||
Float64x2 operator +(Float64x2 other) native "Float64x2_add";
|
||||
Float64x2 operator -() native "Float64x2_negate";
|
||||
|
@ -3493,7 +3493,7 @@ abstract class _TypedListView extends _TypedListBase implements TypedData {
|
|||
final int length;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int8ArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Int8List {
|
||||
|
@ -3538,7 +3538,7 @@ class _Int8ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint8ArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Uint8List {
|
||||
|
@ -3583,7 +3583,7 @@ class _Uint8ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint8ClampedArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Uint8ClampedList {
|
||||
|
@ -3629,7 +3629,7 @@ class _Uint8ClampedArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int16ArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Int16List {
|
||||
|
@ -3687,7 +3687,7 @@ class _Int16ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint16ArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Uint16List {
|
||||
|
@ -3746,7 +3746,7 @@ class _Uint16ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int32ArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Int32List {
|
||||
|
@ -3792,7 +3792,7 @@ class _Int32ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint32ArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Uint32List {
|
||||
|
@ -3838,7 +3838,7 @@ class _Uint32ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int64ArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Int64List {
|
||||
|
@ -3884,7 +3884,7 @@ class _Int64ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Uint64ArrayView extends _TypedListView
|
||||
with _IntListMixin
|
||||
implements Uint64List {
|
||||
|
@ -3930,7 +3930,7 @@ class _Uint64ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float32ArrayView extends _TypedListView
|
||||
with _DoubleListMixin
|
||||
implements Float32List {
|
||||
|
@ -3976,7 +3976,7 @@ class _Float32ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float64ArrayView extends _TypedListView
|
||||
with _DoubleListMixin
|
||||
implements Float64List {
|
||||
|
@ -4022,7 +4022,7 @@ class _Float64ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float32x4ArrayView extends _TypedListView
|
||||
with _Float32x4ListMixin
|
||||
implements Float32x4List {
|
||||
|
@ -4068,7 +4068,7 @@ class _Float32x4ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Int32x4ArrayView extends _TypedListView
|
||||
with _Int32x4ListMixin
|
||||
implements Int32x4List {
|
||||
|
@ -4114,7 +4114,7 @@ class _Int32x4ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _Float64x2ArrayView extends _TypedListView
|
||||
with _Float64x2ListMixin
|
||||
implements Float64x2List {
|
||||
|
@ -4160,7 +4160,7 @@ class _Float64x2ArrayView extends _TypedListView
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _ByteDataView implements ByteData {
|
||||
_ByteDataView(_TypedList typedData, int _offsetInBytes, int _lengthInBytes)
|
||||
: _typedData = typedData,
|
||||
|
|
|
@ -12,7 +12,7 @@ Uri _unsupportedUriBase() {
|
|||
|
||||
// _uriBaseClosure can be overwritten by the embedder to supply a different
|
||||
// value for Uri.base.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
_UriBaseClosure _uriBaseClosure = _unsupportedUriBase;
|
||||
|
||||
@patch
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// part of "core_patch.dart";
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class _WeakProperty {
|
||||
factory _WeakProperty(key, value) => _new(key, value);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ of compilation.
|
|||
|
||||
# Pragma annotation
|
||||
|
||||
The annotation `@pragma("vm.entry-point", ...)` can be placed on a class or
|
||||
The annotation `@pragma("vm:entry-point", ...)` can be placed on a class or
|
||||
member to indicate that it may be allocated or invoked directly from native or
|
||||
VM code. The allowed uses of the annotation are as follows.
|
||||
|
||||
|
@ -26,9 +26,9 @@ VM code. The allowed uses of the annotation are as follows.
|
|||
Any one of the following forms may be attached to a class:
|
||||
|
||||
```dart
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm.entry-point", true/false)
|
||||
@pragma("vm.entry-point", !const bool.formEnvironment("dart.vm.product"))
|
||||
@pragma("vm:entry-point")
|
||||
@pragma("vm:entry-point", true/false)
|
||||
@pragma("vm:entry-point", !const bool.formEnvironment("dart.vm.product"))
|
||||
class C { ... }
|
||||
```
|
||||
|
||||
|
@ -41,9 +41,9 @@ Any one of the following forms may be attached to a procedure (including
|
|||
getters, setters and constructors):
|
||||
|
||||
```dart
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm.entry-point", true/false)
|
||||
@pragma("vm.entry-point", !const bool.formEnvironment("dart.vm.product"))
|
||||
@pragma("vm:entry-point")
|
||||
@pragma("vm:entry-point", true/false)
|
||||
@pragma("vm:entry-point", !const bool.formEnvironment("dart.vm.product"))
|
||||
void foo() { ... }
|
||||
```
|
||||
|
||||
|
@ -58,11 +58,11 @@ Any one of the following forms may be attached to a non-static field. The first
|
|||
three forms may be attached to static fields.
|
||||
|
||||
```dart
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm.entry-point", null)
|
||||
@pragma("vm.entry-point", true/false)
|
||||
@pragma("vm.entry-point", !const bool.formEnvironment("dart.vm.product"))
|
||||
@pragma("vm.entry-point", "get"/"set")
|
||||
@pragma("vm:entry-point")
|
||||
@pragma("vm:entry-point", null)
|
||||
@pragma("vm:entry-point", true/false)
|
||||
@pragma("vm:entry-point", !const bool.formEnvironment("dart.vm.product"))
|
||||
@pragma("vm:entry-point", "get"/"set")
|
||||
void foo() { ... }
|
||||
```
|
||||
|
||||
|
|
|
@ -1450,7 +1450,7 @@ void Precompiler::AddInstantiatedClass(const Class& cls) {
|
|||
|
||||
enum class EntryPointPragma { kAlways, kNever, kGetterOnly, kSetterOnly };
|
||||
|
||||
// Adds all values annotated with @pragma('vm.entry-point') as roots.
|
||||
// Adds all values annotated with @pragma('vm:entry-point') as roots.
|
||||
void Precompiler::AddAnnotatedRoots() {
|
||||
auto& lib = Library::Handle(Z);
|
||||
auto& cls = Class::Handle(isolate()->object_store()->pragma_class());
|
||||
|
|
|
@ -459,7 +459,7 @@ class ObjectPointerVisitor;
|
|||
V(GrowRegExpStack, "_growRegExpStack") \
|
||||
V(DebugProcedureName, ":Eval") \
|
||||
V(DebugClassName, "#DebugClass") \
|
||||
V(vm_entry_point, "vm.entry-point") \
|
||||
V(vm_entry_point, "vm:entry-point") \
|
||||
V(Get, "get") \
|
||||
V(Set, "set")
|
||||
|
||||
|
|
|
@ -46,13 +46,13 @@ part of dart.cli;
|
|||
*/
|
||||
external void _waitForEvent(int timeoutMillis);
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void Function(int) _getWaitForEvent() => _waitForEvent;
|
||||
|
||||
// This should be set from C++ code by the embedder to wire up waitFor() to the
|
||||
// native implementation. In the standalone VM this is set to _waitForEvent()
|
||||
// above. If it is null, calling waitFor() will throw an UnsupportedError.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
void Function(int) _waitForEventClosure;
|
||||
|
||||
class _WaitForUtils {
|
||||
|
|
|
@ -248,7 +248,7 @@ const Object proxy = const _Proxy();
|
|||
* function foo is annotated with a pragma 'other-pragma' specific to OtherTool.
|
||||
*
|
||||
*/
|
||||
@pragma('vm.entry-point')
|
||||
@pragma('vm:entry-point')
|
||||
class pragma {
|
||||
/**
|
||||
* The name of the hint.
|
||||
|
|
|
@ -11,7 +11,7 @@ part of dart.core;
|
|||
* It is a compile-time error for a class to attempt to extend or implement
|
||||
* bool.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class bool {
|
||||
/**
|
||||
* Returns the boolean value of the environment declaration [name].
|
||||
|
|
|
@ -116,7 +116,7 @@ class CastError extends Error {}
|
|||
* Error thrown when attempting to throw [:null:].
|
||||
*/
|
||||
class NullThrownError extends Error {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
NullThrownError();
|
||||
String toString() => "Throw of null.";
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ class ArgumentError extends Error {
|
|||
* If the `message` is not a [String], it is assumed to be a value instead
|
||||
* of a message.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
ArgumentError([this.message])
|
||||
: invalidValue = null,
|
||||
_hasValue = false,
|
||||
|
@ -160,7 +160,7 @@ class ArgumentError extends Error {
|
|||
* names differ from the interface, it might be more useful to use the
|
||||
* interface method's argument name (or just rename arguments to match).
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
ArgumentError.value(value, [this.name, this.message])
|
||||
: invalidValue = value,
|
||||
_hasValue = true;
|
||||
|
@ -206,7 +206,7 @@ class RangeError extends ArgumentError {
|
|||
/**
|
||||
* Create a new [RangeError] with the given [message].
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
RangeError(var message)
|
||||
: start = null,
|
||||
end = null,
|
||||
|
@ -239,7 +239,7 @@ class RangeError extends ArgumentError {
|
|||
* invalid value, and the [message] can override the default error
|
||||
* description.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
RangeError.range(num invalidValue, int minValue, int maxValue,
|
||||
[String name, String message])
|
||||
: start = minValue,
|
||||
|
@ -417,7 +417,7 @@ class IndexError extends ArgumentError implements RangeError {
|
|||
*/
|
||||
class FallThroughError extends Error {
|
||||
FallThroughError();
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
external FallThroughError._create(String url, int line);
|
||||
|
||||
external String toString();
|
||||
|
@ -488,7 +488,7 @@ class NoSuchMethodError extends Error {
|
|||
*/
|
||||
class UnsupportedError extends Error {
|
||||
final String message;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
UnsupportedError(this.message);
|
||||
String toString() => "Unsupported operation: $message";
|
||||
}
|
||||
|
@ -546,7 +546,7 @@ class ConcurrentModificationError extends Error {
|
|||
}
|
||||
|
||||
class OutOfMemoryError implements Error {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const OutOfMemoryError();
|
||||
String toString() => "Out of Memory";
|
||||
|
||||
|
@ -554,7 +554,7 @@ class OutOfMemoryError implements Error {
|
|||
}
|
||||
|
||||
class StackOverflowError implements Error {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const StackOverflowError();
|
||||
String toString() => "Stack Overflow";
|
||||
|
||||
|
@ -570,7 +570,7 @@ class StackOverflowError implements Error {
|
|||
*/
|
||||
class CyclicInitializationError extends Error {
|
||||
final String variableName;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
CyclicInitializationError([this.variableName]);
|
||||
String toString() => variableName == null
|
||||
? "Reading static variable during its initialization"
|
||||
|
|
|
@ -74,7 +74,7 @@ class FormatException implements Exception {
|
|||
* Optionally also supply the actual [source] with the incorrect format,
|
||||
* and the [offset] in the format where a problem was detected.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const FormatException([this.message = "", this.source, this.offset]);
|
||||
|
||||
/**
|
||||
|
@ -175,7 +175,7 @@ class FormatException implements Exception {
|
|||
|
||||
// Exception thrown when doing integer division with a zero divisor.
|
||||
class IntegerDivisionByZeroException implements Exception {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const IntegerDivisionByZeroException();
|
||||
String toString() => "IntegerDivisionByZeroException";
|
||||
}
|
||||
|
|
|
@ -18,5 +18,5 @@ external bool identical(Object a, Object b);
|
|||
*
|
||||
* This hash code is compatible with [identical].
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
external int identityHashCode(Object object);
|
||||
|
|
|
@ -11,7 +11,7 @@ part of dart.core;
|
|||
* It is a compile-time error for a class to attempt to extend or implement
|
||||
* Null.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class Null {
|
||||
factory Null._uninstantiable() {
|
||||
throw new UnsupportedError('class Null cannot be instantiated');
|
||||
|
|
|
@ -18,7 +18,7 @@ part of dart.core;
|
|||
* section of the [library
|
||||
* tour](http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html).
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
class Object {
|
||||
/**
|
||||
* Creates a new [Object] instance.
|
||||
|
@ -105,7 +105,7 @@ class Object {
|
|||
*
|
||||
* The default behavior is to throw a [NoSuchMethodError].
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
external dynamic noSuchMethod(Invocation invocation);
|
||||
|
||||
/**
|
||||
|
|
|
@ -144,7 +144,7 @@ class Metrics {
|
|||
}
|
||||
|
||||
// ignore: unused_element, called from native code
|
||||
@pragma("vm.entry-point", !const bool.fromEnvironment("dart.vm.product"))
|
||||
@pragma("vm:entry-point", !const bool.fromEnvironment("dart.vm.product"))
|
||||
static String _printMetrics() {
|
||||
var metrics = [];
|
||||
for (var metric in _metrics.values) {
|
||||
|
|
|
@ -64,7 +64,7 @@ class OSError {
|
|||
final int errorCode;
|
||||
|
||||
/** Creates an OSError object from a message and an errorCode. */
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const OSError([this.message = "", this.errorCode = noErrorCode]);
|
||||
|
||||
/** Converts an OSError object to a string representation. */
|
||||
|
|
|
@ -126,7 +126,7 @@ abstract class Directory implements FileSystemEntity {
|
|||
* If [path] is an absolute path, it will be immune to changes to the
|
||||
* current working directory.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory Directory(String path) {
|
||||
final IOOverrides overrides = IOOverrides.current;
|
||||
if (overrides == null) {
|
||||
|
|
|
@ -16,7 +16,7 @@ abstract class _EmbedderConfig {
|
|||
static bool _mayChdir = true;
|
||||
|
||||
/// The Isolate may call exit().
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
static bool _mayExit = true;
|
||||
|
||||
// The Isolate may set Stdin.echoMode.
|
||||
|
|
|
@ -247,7 +247,7 @@ abstract class File implements FileSystemEntity {
|
|||
* If [path] is an absolute path, it will be immune to changes to the
|
||||
* current working directory.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory File(String path) {
|
||||
final IOOverrides overrides = IOOverrides.current;
|
||||
if (overrides == null) {
|
||||
|
@ -980,7 +980,7 @@ class FileSystemException implements IOException {
|
|||
* [message], optional file system path [path] and optional OS error
|
||||
* [osError].
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const FileSystemException([this.message = "", this.path = "", this.osError]);
|
||||
|
||||
String toString() {
|
||||
|
|
|
@ -12,7 +12,7 @@ abstract class Link implements FileSystemEntity {
|
|||
/**
|
||||
* Creates a Link object.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
factory Link(String path) {
|
||||
final IOOverrides overrides = IOOverrides.current;
|
||||
if (overrides == null) {
|
||||
|
|
|
@ -19,6 +19,6 @@ abstract class _Namespace {
|
|||
// If it is not set up by the embedder, relative paths will be resolved
|
||||
// relative to the process's current working directory and absolute paths will
|
||||
// be left relative to the file system root.
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
external static void _setupNamespace(var namespace);
|
||||
}
|
||||
|
|
|
@ -378,7 +378,7 @@ abstract class RawSecureSocket implements RawSocket {
|
|||
* get the fields of the certificate.
|
||||
*/
|
||||
abstract class X509Certificate {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
external factory X509Certificate._();
|
||||
|
||||
/// The DER encoded bytes of the certificate.
|
||||
|
@ -1108,13 +1108,13 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
|
|||
*/
|
||||
class _ExternalBuffer {
|
||||
// This will be an ExternalByteArray, backed by C allocated data.
|
||||
@pragma("vm.entry-point", "set")
|
||||
@pragma("vm:entry-point", "set")
|
||||
List<int> data;
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
int start;
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
int end;
|
||||
|
||||
final size;
|
||||
|
@ -1263,7 +1263,7 @@ class TlsException implements IOException {
|
|||
final String message;
|
||||
final OSError osError;
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const TlsException([String message = "", OSError osError = null])
|
||||
: this._("TlsException", message, osError);
|
||||
|
||||
|
@ -1289,7 +1289,7 @@ class TlsException implements IOException {
|
|||
* a secure network connection.
|
||||
*/
|
||||
class HandshakeException extends TlsException {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const HandshakeException([String message = "", OSError osError = null])
|
||||
: super._("HandshakeException", message, osError);
|
||||
}
|
||||
|
@ -1300,7 +1300,7 @@ class HandshakeException extends TlsException {
|
|||
* certificate.
|
||||
*/
|
||||
class CertificateException extends TlsException {
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
const CertificateException([String message = "", OSError osError = null])
|
||||
: super._("CertificateException", message, osError);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ part "capability.dart";
|
|||
class IsolateSpawnException implements Exception {
|
||||
/** Error message reported by the spawn operation. */
|
||||
final String message;
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
IsolateSpawnException(this.message);
|
||||
String toString() => "IsolateSpawnException: $message";
|
||||
}
|
||||
|
|
|
@ -455,7 +455,7 @@ abstract class ByteData implements TypedData {
|
|||
* Creates a [ByteData] of the specified length (in elements), all of
|
||||
* whose bytes are initially zero.
|
||||
*/
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
external factory ByteData(int length);
|
||||
|
||||
/**
|
||||
|
|
|
@ -696,13 +696,13 @@ class VMService extends MessageRouter {
|
|||
}
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point")
|
||||
@pragma("vm:entry-point")
|
||||
RawReceivePort boot() {
|
||||
// Return the port we expect isolate control messages on.
|
||||
return isolateControlPort;
|
||||
}
|
||||
|
||||
@pragma("vm.entry-point", !const bool.fromEnvironment("dart.vm.product"))
|
||||
@pragma("vm:entry-point", !const bool.fromEnvironment("dart.vm.product"))
|
||||
void _registerIsolate(int port_id, SendPort sp, String name) {
|
||||
var service = new VMService();
|
||||
service.runningIsolates.isolateStartup(port_id, sp, name);
|
||||
|
|
Loading…
Reference in a new issue