| Index: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
| index 0728da8106b5b88877c06392897082cf5d1cf643..13a33e20b5a62cfc2092f3ecdf73af2e5eeb08bf 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
| @@ -18,7 +18,7 @@ export 'builtin_operator.dart';
|
| // These imports are only used for the JavaScript specific nodes. If we want to
|
| // support more than one native backend, we should probably create better
|
| // abstractions for native code and its type and effect system.
|
| -import '../js/js.dart' as js show Template, isNullGuardOnFirstArgument;
|
| +import '../js/js.dart' as js show Template;
|
| import '../native/native.dart' as native show NativeBehavior;
|
|
|
| abstract class Node {
|
| @@ -1545,15 +1545,6 @@ class ForeignCode extends UnsafePrimitive {
|
| void setParentPointers() {
|
| _setParentsOnList(arguments, this);
|
| }
|
| -
|
| - bool isNullGuardOnNullFirstArgument() {
|
| - if (arguments.length < 1) return false;
|
| - // TODO(sra): Fix NativeThrowBehavior to distinguish MAY from
|
| - // throws-nsm-on-null-followed-by-MAY and remove
|
| - // [isNullGuardForFirstArgument].
|
| - if (nativeBehavior.throwBehavior.isNullNSMGuard) return true;
|
| - return js.isNullGuardOnFirstArgument(codeTemplate);
|
| - }
|
| }
|
|
|
| class Constant extends Primitive {
|
|
|