blob: 00f866765c6022c3860b9888e53bc84622e3ad8f [file] [log] [blame]
// Copyright (c) 2017, 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.
/// ignore: IMPORT_INTERNAL_LIBRARY
import 'dart:_foreign_helper';
/// ignore: IMPORT_INTERNAL_LIBRARY
import 'dart:_js_embedded_names';
/// ignore: IMPORT_INTERNAL_LIBRARY, UNUSED_IMPORT
import 'dart:_interceptors';
/*element: jsCallEmpty:SideEffects(reads nothing; writes nothing)*/
jsCallEmpty() => JS('', '#', 0);
/*element: jsCallInt:SideEffects(reads nothing; writes nothing)*/
jsCallInt() => JS('int', '#', 0);
/*element: jsCallEffectsAllDependsNoIndex:SideEffects(reads field, static; writes anything)*/
jsCallEffectsAllDependsNoIndex() => JS('effects:all;depends:no-index', '#', 0);
/*element: jsCallEffectsNoInstanceDependsNoStatic:SideEffects(reads index, field; writes index, static)*/
jsCallEffectsNoInstanceDependsNoStatic() =>
JS('effects:no-instance;depends:no-static', '#', 0);
/*element: jsBuiltin_createFunctionTypeRti:SideEffects(reads static; writes nothing)*/
jsBuiltin_createFunctionTypeRti() {
// TODO(johnniwinther): Why doesn't this have `Depends on nothing`?
return JS_BUILTIN('returns:=Object;effects:none;depends:none',
JsBuiltin.createFunctionTypeRti);
}
/*element: jsBuiltin_rawRtiToJsConstructorName:SideEffects(reads anything; writes anything)*/
jsBuiltin_rawRtiToJsConstructorName() {
return JS_BUILTIN('String', JsBuiltin.rawRtiToJsConstructorName, null);
}
/*element: jsEmbeddedGlobal_getTypeFromName:SideEffects(reads static; writes nothing)*/
jsEmbeddedGlobal_getTypeFromName() {
return JS_EMBEDDED_GLOBAL('', GET_TYPE_FROM_NAME);
}
/*element: jsEmbeddedGlobal_libraries:SideEffects(reads static; writes nothing)*/
jsEmbeddedGlobal_libraries() {
return JS_EMBEDDED_GLOBAL('JSExtendableArray|Null', LIBRARIES);
}
/*element: jsStringConcat:SideEffects(reads nothing; writes nothing)*/
jsStringConcat() => JS_STRING_CONCAT('a', 'b');
/*element: jsGetStaticState:SideEffects(reads nothing; writes anything)*/
jsGetStaticState() => JS_GET_STATIC_STATE();
/*element: main:SideEffects(reads anything; writes anything)*/
main() {
jsCallInt();
jsCallEmpty();
jsCallEffectsAllDependsNoIndex();
jsCallEffectsNoInstanceDependsNoStatic();
jsBuiltin_createFunctionTypeRti();
jsBuiltin_rawRtiToJsConstructorName();
jsEmbeddedGlobal_getTypeFromName();
jsEmbeddedGlobal_libraries();
jsStringConcat();
jsGetStaticState();
}