| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /// Contains the names of globals that are embedded into the output by the | 5 /// Contains the names of globals that are embedded into the output by the |
| 6 /// compiler. | 6 /// compiler. |
| 7 /// | 7 /// |
| 8 /// Variables embedded this way should be access with `JS_EMBEDDED_GLOBAL` from | 8 /// Variables embedded this way should be access with `JS_EMBEDDED_GLOBAL` from |
| 9 /// the `_foreign_helper` library. | 9 /// the `_foreign_helper` library. |
| 10 /// | 10 /// |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 CALL_PREFIX1, | 86 CALL_PREFIX1, |
| 87 CALL_PREFIX2, | 87 CALL_PREFIX2, |
| 88 CALL_PREFIX3, | 88 CALL_PREFIX3, |
| 89 CALL_CATCH_ALL, | 89 CALL_CATCH_ALL, |
| 90 REFLECTABLE, | 90 REFLECTABLE, |
| 91 CLASS_DESCRIPTOR_PROPERTY, | 91 CLASS_DESCRIPTOR_PROPERTY, |
| 92 REQUIRED_PARAMETER_PROPERTY, | 92 REQUIRED_PARAMETER_PROPERTY, |
| 93 DEFAULT_VALUES_PROPERTY, | 93 DEFAULT_VALUES_PROPERTY, |
| 94 CALL_NAME_PROPERTY, | 94 CALL_NAME_PROPERTY, |
| 95 DEFERRED_ACTION_PROPERTY, | 95 DEFERRED_ACTION_PROPERTY, |
| 96 /// Prefix used for generated type argument substitutions on classes. |
| 96 OPERATOR_AS_PREFIX, | 97 OPERATOR_AS_PREFIX, |
| 98 /// Name used for generated function types on classes and methods. |
| 97 SIGNATURE_NAME, | 99 SIGNATURE_NAME, |
| 100 /// Name used to tag typedefs. |
| 98 TYPEDEF_TAG, | 101 TYPEDEF_TAG, |
| 102 /// Name used to tag void return in function type representations in |
| 103 /// JavaScript. |
| 99 FUNCTION_TYPE_VOID_RETURN_TAG, | 104 FUNCTION_TYPE_VOID_RETURN_TAG, |
| 105 /// Name used to tag return types in function type representations in |
| 106 /// JavaScript. |
| 100 FUNCTION_TYPE_RETURN_TYPE_TAG, | 107 FUNCTION_TYPE_RETURN_TYPE_TAG, |
| 108 /// Name used to tag required parameters in function type representations |
| 109 /// in JavaScript. |
| 101 FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG, | 110 FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG, |
| 111 /// Name used to tag optional parameters in function type representations |
| 112 /// in JavaScript. |
| 102 FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG, | 113 FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG, |
| 114 /// Name used to tag named parameters in function type representations in |
| 115 /// JavaScript. |
| 103 FUNCTION_TYPE_NAMED_PARAMETERS_TAG, | 116 FUNCTION_TYPE_NAMED_PARAMETERS_TAG, |
| 117 /// Field name used for determining if an object or its interceptor has |
| 118 /// JavaScript indexing behavior. |
| 119 IS_INDEXABLE_FIELD_NAME, |
| 104 } | 120 } |
| 105 | 121 |
| 106 enum JsBuiltin { | 122 enum JsBuiltin { |
| 107 /// Returns the JavaScript constructor function for Dart's Object class. | 123 /// Returns the JavaScript constructor function for Dart's Object class. |
| 108 /// This can be used for type tests, as in | 124 /// This can be used for type tests, as in |
| 109 /// | 125 /// |
| 110 /// var constructor = JS_BUILTIN('', JsBuiltin.dartObjectContructor); | 126 /// var constructor = JS_BUILTIN('', JsBuiltin.dartObjectContructor); |
| 111 /// if (JS('bool', '# instanceof #', obj, constructor)) | 127 /// if (JS('bool', '# instanceof #', obj, constructor)) |
| 112 /// ... | 128 /// ... |
| 113 dartObjectConstructor, | 129 dartObjectConstructor, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 /// JS_BUILTIN('returns:var;effects:none;depends:none', | 197 /// JS_BUILTIN('returns:var;effects:none;depends:none', |
| 182 /// JsBuiltin.getMetadata, index); | 198 /// JsBuiltin.getMetadata, index); |
| 183 getMetadata, | 199 getMetadata, |
| 184 | 200 |
| 185 /// Returns the type of the given [index]. | 201 /// Returns the type of the given [index]. |
| 186 /// | 202 /// |
| 187 /// JS_BUILTIN('returns:var;effects:none;depends:none', | 203 /// JS_BUILTIN('returns:var;effects:none;depends:none', |
| 188 /// JsBuiltin.getType, index); | 204 /// JsBuiltin.getType, index); |
| 189 getType, | 205 getType, |
| 190 } | 206 } |
| OLD | NEW |