anchor.diff:    void handleLiteralInt(Token token) {
       debugEvent("LiteralInt");
       int value = int.tryParse(token.lexeme);
  -    if (library.loader.target.legacyMode) {
  +    if (legacyMode) {
         if (value == null) {
           push(unhandled(
               'large integer', 'handleLiteralInt', token.charOffset, uri));
  
positive.code:       int charLength: noLength}) {
      // The argument checks for the initial target of redirecting factories
      // invocations are skipped in Dart 1.
      if (!library.loader.target.legacyMode || !isRedirectingFactory(target)) {
        List<TypeParameter> typeParameters = target.function.typeParameters;
        if (target is Constructor) {
          assert(!target.enclosingClass.isAbstract);
  
negative.code:     // Peek to leave type parameters on top of stack.
      List<KernelTypeVariableBuilder> typeVariables = peek();
  
      if (!legacyMode) {
        List<KernelTypeBuilder> calculatedBounds = calculateBounds(
            typeVariables,
            library.loader.target.dynamicType,
  