mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:29:48 +00:00
Add js-interop support to the fast-startup emitter
BUG= R=jacobr@google.com Review URL: https://codereview.chromium.org/2420173002 .
This commit is contained in:
parent
60a966605d
commit
ee42a0a0aa
|
@ -345,6 +345,9 @@ var #staticStateDeclaration = {};
|
|||
// Native-support uses setOrUpdateInterceptorsByTag and setOrUpdateLeafTags.
|
||||
#nativeSupport;
|
||||
|
||||
// Sets up the js-interop support.
|
||||
#jsInteropSupport;
|
||||
|
||||
// Invokes main (making sure that it records the 'current-script' value).
|
||||
#invokeMain;
|
||||
})()
|
||||
|
@ -497,6 +500,9 @@ class FragmentEmitter {
|
|||
'nativeSupport': program.needsNativeSupport
|
||||
? emitNativeSupport(fragment)
|
||||
: new js.EmptyStatement(),
|
||||
'jsInteropSupport': backend.jsInteropAnalysis.enabledJsInterop
|
||||
? backend.jsInteropAnalysis.buildJsInteropBootstrap()
|
||||
: new js.EmptyStatement(),
|
||||
'invokeMain': fragment.invokeMain,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -434,11 +434,6 @@ custom/document_register_type_extensions: Fail # custom elements not supported
|
|||
custom_elements_23127_test/baseline: Fail # custom elements not supported
|
||||
custom_elements_23127_test/c1t: Fail # custom elements not supported
|
||||
custom_elements_23127_test/c2: Fail # custom elements not supported
|
||||
js_function_getter_test: Fail # js-interop function's not supported
|
||||
js_typed_interop_callable_object_test: Fail # js-interop function's not supported
|
||||
js_typed_interop_test/closure: Fail # js-interop function's not supported
|
||||
js_typed_interop_test/method: Fail # js-interop function's not supported
|
||||
js_typed_interop_window_property_test/bind*: Fail # js-interop function's not supported
|
||||
|
||||
[ $compiler == dart2js && $cps_ir && $browser ]
|
||||
js_typed_interop_side_cast_exp_test: RuntimeError # Corner case in package:js that we might want to remove (See comment in #24978).
|
||||
|
|
Loading…
Reference in a new issue