Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

add private Dart libraries for our hand-coded JS runtime modules #220

@jmesserly

Description

@jmesserly

e.g. https://github.com/dart-lang/dev_compiler/blob/master/lib/runtime/_operations.js

could be "dart:_operations" in libraries.dart. We'll skip actually generating code for it, though, in the build_sdk step.

This will allow us to call them directly, rather than wrapping with the JS builtin:

https://codereview.chromium.org/1186683005/diff/20001/tool/input_sdk/private/js_mirrors.dart?context=10&column_width=80&tab_spaces=8

dynamic _dload(obj, String name) {
 return JS('', '#.dload(#, #)', _dart, obj, name);
}

might also help with moving these helpers to coercion reifier (e.g. actually generate a call to "dsend" top level method in "dart:_operations")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions