Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 302 for removeable (0.17 sec)

  1. src/cmd/compile/internal/ssa/value.go

    	return v.Op == OpVarDef || v.Op == OpVarLive || v.Op == OpPhi ||
    		(v.Op == OpFwdRef || v.Op == OpCopy) && v.Type == types.TypeMem
    }
    
    // removeable reports whether the value v can be removed from the SSA graph entirely
    // if its use count drops to 0.
    func (v *Value) removeable() bool {
    	if v.Type.IsVoid() {
    		// Void ops (inline marks), must stay.
    		return false
    	}
    	if opcodeTable[v.Op].nilCheck {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite.go

    			for j, v := range b.Values {
    				var v0 *Value
    				if debug > 1 {
    					v0 = new(Value)
    					*v0 = *v
    					v0.Args = append([]*Value{}, v.Args...) // make a new copy, not aliasing
    				}
    				if v.Uses == 0 && v.removeable() {
    					if v.Op != OpInvalid && deadcode == removeDeadValues {
    						// Reset any values that are now unused, so that we decrement
    						// the use count of all of its arguments.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/clean/clean.go

    			sh.ShowCmd("", "rm -f %s", p.Target)
    		}
    		if !cfg.BuildN {
    			removeFile(p.Target)
    		}
    	}
    
    	if cleanR {
    		for _, p1 := range p.Internal.Imports {
    			clean(p1)
    		}
    	}
    }
    
    // removeFile tries to remove file f, if error other than file doesn't exist
    // occurs, it will report the error.
    func removeFile(f string) {
    	err := os.Remove(f)
    	if err == nil || os.IsNotExist(err) {
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

        assertFalse(
            "removeAll(emptyCollection) should return false",
            collection.removeAll(MinimalCollection.of()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAll_nonePresent() {
        assertFalse(
            "removeAll(disjointCollection) should return false",
            collection.removeAll(MinimalCollection.of(e3())));
        expectUnchanged();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

        assertFalse(
            "removeAll(emptyCollection) should return false",
            collection.removeAll(MinimalCollection.of()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAll_nonePresent() {
        assertFalse(
            "removeAll(disjointCollection) should return false",
            collection.removeAll(MinimalCollection.of(e3())));
        expectUnchanged();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. src/os/removeall_test.go

    				t.Fatalf("Lstat %q succeeded after partial RemoveAll", s)
    			}
    		}
    	}
    	if err = RemoveAll(path); err != nil {
    		t.Fatalf("RemoveAll %q after partial RemoveAll: %s", path, err)
    	}
    	if _, err = Lstat(path); err == nil {
    		t.Fatalf("Lstat %q succeeded after RemoveAll (final)", path)
    	}
    }
    
    // Test RemoveAll on a large directory.
    func TestRemoveAllLarge(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java

        collection = getSubjectGenerator().create(arrayAndDuplicate.elements);
        E duplicate = arrayAndDuplicate.duplicate;
    
        assertTrue(
            "removeAll(intersectingCollection) should return true",
            getList().removeAll(MinimalCollection.of(duplicate)));
        assertFalse(
            "after removeAll(e), a collection should not contain e even "
                + "if it initially contained e more than once.",
            getList().contains(duplicate));
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java

        collection = getSubjectGenerator().create(arrayAndDuplicate.elements);
        E duplicate = arrayAndDuplicate.duplicate;
    
        assertTrue(
            "removeAll(intersectingCollection) should return true",
            getList().removeAll(MinimalCollection.of(duplicate)));
        assertFalse(
            "after removeAll(e), a collection should not contain e even "
                + "if it initially contained e more than once.",
            getList().contains(duplicate));
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/os/path.go

    			return nil
    		}
    		return err
    	}
    	return nil
    }
    
    // RemoveAll removes path and any children it contains.
    // It removes everything it can but returns the first error
    // it encounters. If the path does not exist, RemoveAll
    // returns nil (no error).
    // If there is an error, it will be of type [*PathError].
    func RemoveAll(path string) error {
    	return removeAll(path)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. src/os/path_windows_test.go

    	for i := 0; i < 100; i++ {
    		path += `\another-path-component`
    	}
    	if err := os.MkdirAll(path, 0777); err != nil {
    		t.Fatalf("MkdirAll(%q) failed; %v", path, err)
    	}
    	if err := os.RemoveAll(tmpDir); err != nil {
    		t.Fatalf("RemoveAll(%q) failed; %v", tmpDir, err)
    	}
    }
    
    func TestMkdirAllExtendedLength(t *testing.T) {
    	t.Parallel()
    	tmpDir := t.TempDir()
    
    	const prefix = `\\?\`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top