| Index: pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart
|
| index 3e913abf59d5bb9d27ed5607fc42fef7ffaaee84..24343793de88d5070844642da0bf116b91045589 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart
|
| @@ -173,8 +173,8 @@ class ModelEmitter {
|
| interceptorsByTagAccess,
|
| leafTagsAccess);
|
|
|
| - nativeHoles['hasNativeClasses'] = program.outputContainsNativeClasses;
|
| - nativeHoles['hasNoNativeClasses'] = !program.outputContainsNativeClasses;
|
| + nativeHoles['needsNativeSupport'] = program.needsNativeSupport;
|
| + nativeHoles['needsNoNativeSupport'] = !program.needsNativeSupport;
|
| nativeHoles['nativeInfoHandler'] = nativeInfoHandler;
|
|
|
| return nativeHoles;
|
| @@ -237,7 +237,7 @@ class ModelEmitter {
|
|
|
| globals.add(emitMetadata(program));
|
|
|
| - if (program.outputContainsNativeClasses) {
|
| + if (program.needsNativeSupport) {
|
| globals.add(new js.Property(js.string(INTERCEPTORS_BY_TAG),
|
| js.js('Object.create(null)', [])));
|
| globals.add(new js.Property(js.string(LEAF_TAGS),
|
| @@ -777,7 +777,7 @@ function parseFunctionDescriptor(proto, name, descriptor) {
|
| var name = classes[i];
|
| var cls = classes[i + 1];
|
|
|
| - if (#hasNativeClasses) {
|
| + if (#needsNativeSupport) {
|
| // $nativeInfoDescription.
|
| var indexOrNativeInfo = classes[i + 2];
|
| if (typeof indexOrNativeInfo == "number") {
|
| @@ -789,7 +789,7 @@ function parseFunctionDescriptor(proto, name, descriptor) {
|
| }
|
| }
|
|
|
| - if (#hasNoNativeClasses) {
|
| + if (#needsNoNativeSupport) {
|
| var holderIndex = classes[i + 2];
|
| }
|
|
|
| @@ -984,7 +984,7 @@ function parseFunctionDescriptor(proto, name, descriptor) {
|
| }
|
| }
|
|
|
| - if (#hasNativeClasses) {
|
| + if (#needsNativeSupport) {
|
| function handleNativeClassInfos() {
|
| for (var nativeClass in nativeInfos) {
|
| var constructor = holdersMap[nativeClass][nativeClass].ensureResolved();
|
| @@ -1007,7 +1007,7 @@ function parseFunctionDescriptor(proto, name, descriptor) {
|
| // generic arguments (which should be fine, but maybe there are other
|
| // similar things).
|
| // Initialize natives.
|
| - if (#hasNativeClasses) handleNativeClassInfos();
|
| + if (#needsNativeSupport) handleNativeClassInfos();
|
|
|
| // Initialize static non-final fields.
|
| #staticNonFinals;
|
|
|