| Index: sdk/lib/_internal/compiler/implementation/runtime_data.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/runtime_data.dart b/sdk/lib/_internal/compiler/implementation/runtime_data.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..545aa726995bd06e292b3288cb873d765395f3ac
|
| --- /dev/null
|
| +++ b/sdk/lib/_internal/compiler/implementation/runtime_data.dart
|
| @@ -0,0 +1,22 @@
|
| +// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +/// Contains encoding, decoding and detection functionality for the
|
| +/// representation of program data at runtime.
|
| +///
|
| +/// This library is shared between the compiler and the runtime system.
|
| +library dart2js.runtime_data;
|
| +
|
| +
|
| +String encodeTypedefFieldDescriptor(int typeIndex) {
|
| + return ":$typeIndex;";
|
| +}
|
| +
|
| +bool isTypedefDescriptor(String descriptor) {
|
| + return descriptor.startsWith(':');
|
| +}
|
| +
|
| +int getTypeFromTypedef(String descriptor) {
|
| + return int.parse(descriptor.substring(1, descriptor.length - 1));
|
| +}
|
|
|