Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for inlineable (0.21 sec)

  1. test/fixedbugs/issue32901.dir/c.go

    // license that can be found in the LICENSE file.
    
    package c
    
    import "./b"
    
    func F() interface{} {
    	go func(){}() // make it non-inlineable
    	return b.F()
    }
    
    func P() interface{} {
    	go func(){}() // make it non-inlineable
    	return b.P()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 03 14:12:22 UTC 2019
    - 346 bytes
    - Viewed (0)
  2. test/fixedbugs/issue14164.dir/a.go

    // be no difference between F and G. Alas, currently
    // G is not inlineable (at least via export data), so
    // the issue is moot, here.
    func G(x interface{}) bool {
    	type t0 interface {
    		f()
    	}
    	_, ok := x.(interface {
    		t0
    	})
    	return ok
    }
    
    // Like G but now the embedded interface is declared
    // at package level. This function is inlineable via
    // export data. The export data representation is like
    // for F.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 01 20:29:19 UTC 2016
    - 1.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue19679.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Used to crash when a type switch was present in dead code
    // in an inlineable function.
    
    package p
    
    func Then() {
    	var i interface{}
    	if false {
    		switch i.(type) {
    		}
    	}
    }
    
    func Else() {
    	var i interface{}
    	if true {
    		_ = i
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 17:21:05 UTC 2017
    - 536 bytes
    - Viewed (0)
  4. test/fixedbugs/issue14164.dir/main.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // Verify that we can import package "a" containing an inlineable
    // function F that declares a local interface with a non-exported
    // method f.
    import _ "./a"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 01 20:29:19 UTC 2016
    - 350 bytes
    - Viewed (0)
  5. test/fixedbugs/issue23521.go

    package p
    
    //go:noinline
    func nonleaf() {}
    
    const truth = true
    
    func f() int { // ERROR "can inline f"
    	if truth {
    		return 0
    	}
    	// If everything below is removed, as it should,
    	// function f should be inlineable.
    	nonleaf()
    	for {
    		panic("")
    	}
    }
    
    func g() int { // ERROR "can inline g"
    	return f() // ERROR "inlining call to f"
    }
    
    func f2() int { // ERROR "can inline f2"
    	if !truth {
    		nonleaf()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 03 15:19:41 UTC 2018
    - 773 bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/deps/ClassSetAnalysis.java

        /**
         * Computes the transitive dependents of a set of changed classes. If the classes had any changes to inlineable constants, these need to be provided as the second parameter.
         *
         * If incremental annotation processing encountered issues in the previous compilation, a full recompilation is required.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/deps/ClassSetAnalysisData.java

     * Contains a reverse dependency view, so we can determine which classes in this set are affected by a change to a class inside or outside this set.
     * Contains information about the accessible, inlineable constants in each class, since these require full recompilation of dependents if changed.
     * If analysis failed for any reason, that reason is captured and triggers full rebuilds if this class set is used.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 15:22:57 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  8. src/unicode/utf16/utf16.go

    // to the end of p and returns the extended buffer. If the rune is not
    // a valid Unicode code point, it appends the encoding of U+FFFD.
    func AppendRune(a []uint16, r rune) []uint16 {
    	// This function is inlineable for fast handling of ASCII.
    	switch {
    	case 0 <= r && r < surr1, surr3 <= r && r < surrSelf:
    		// normal rune
    		return append(a, uint16(r))
    	case surrSelf <= r && r <= maxRune:
    		// needs surrogate sequence
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/escape/CharEscaper.java

       * @throws NullPointerException if {@code string} is null
       */
      @Override
      public String escape(String string) {
        checkNotNull(string); // GWT specific check (do not optimize)
        // Inlineable fast-path loop which hands off to escapeSlow() only if needed
        int length = string.length();
        for (int index = 0; index < length; index++) {
          if (escape(string.charAt(index)) != null) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  10. test/inline.go

    	return runtime.GOMAXPROCS(0)
    }
    func small3(t T) { // ERROR "can inline small3"
    	t.meth2(3, 5)
    }
    func small4(t T) { // not inlineable - has 2 calls.
    	t.meth2(runtime.GOMAXPROCS(0), 5)
    }
    func (T) meth2(int, int) { // not inlineable - has 2 calls.
    	runtime.GC()
    	runtime.GC()
    }
    
    // Issue #29737 - make sure we can do inlining for a chain of recursive functions
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
Back to top