Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for isConst (0.63 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

            }
        }
    
        @Override
        public void visit(FieldDeclaration fieldDeclaration, ClassMetaDataRepository<ClassMetaData> arg) {
            boolean isConst = getCurrentClass().isInterface() || (fieldDeclaration.isStatic() && fieldDeclaration.isFinal());
            if (isConst) {
                fieldDeclaration.getVariables().forEach(variableDeclarator -> {
                    String constName = variableDeclarator.getNameAsString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 21 13:27:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/sccp.go

    	return true
    }
    
    // possibleConst checks if Value can be folded to const. For those Values that can
    // never become constants(e.g. StaticCall), we don't make futile efforts.
    func possibleConst(val *Value) bool {
    	if isConst(val) {
    		return true
    	}
    	switch val.Op {
    	case OpCopy:
    		return true
    	case OpPhi:
    		return true
    	case
    		// negate
    		OpNeg8, OpNeg16, OpNeg32, OpNeg64, OpNeg32F, OpNeg64F,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/expr.go

    	n.Cap = DefaultLit(Expr(n.Cap), types.Types[types.TINT])
    
    	if ir.IsConst(n.Len, constant.Int) && ir.Int64Val(n.Len) < 0 {
    		base.Fatalf("len for OSLICEHEADER must be non-negative")
    	}
    
    	if ir.IsConst(n.Cap, constant.Int) && ir.Int64Val(n.Cap) < 0 {
    		base.Fatalf("cap for OSLICEHEADER must be non-negative")
    	}
    
    	if ir.IsConst(n.Len, constant.Int) && ir.IsConst(n.Cap, constant.Int) && constant.Compare(n.Len.Val(), token.GTR, n.Cap.Val()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

    import org.jetbrains.kotlin.fir.FirElement
    import org.jetbrains.kotlin.fir.declarations.FirCallableDeclaration
    import org.jetbrains.kotlin.fir.declarations.FirSimpleFunction
    import org.jetbrains.kotlin.fir.declarations.utils.isConst
    import org.jetbrains.kotlin.fir.declarations.utils.isFinal
    import org.jetbrains.kotlin.fir.declarations.utils.isStatic
    import org.jetbrains.kotlin.fir.expressions.*
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 11:53:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/staticinit/sched.go

    	}
    	newList := make([]ir.Node, 0, need)
    	for i := 0; i < len(s); i++ {
    		if ir.IsConst(s[i], constant.String) && i+1 < len(s) && ir.IsConst(s[i+1], constant.String) {
    			// merge from i up to but not including i2
    			var strs []string
    			i2 := i
    			for i2 < len(s) && ir.IsConst(s[i2], constant.String) {
    				strs = append(strs, ir.StringVal(s[i2]))
    				i2++
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/expr.go

    	if t.IsArray() {
    		n.SetBounded(bounded(r, t.NumElem()))
    		if base.Flag.LowerM != 0 && n.Bounded() && !ir.IsConst(n.Index, constant.Int) {
    			base.Warn("index bounds check elided")
    		}
    	} else if ir.IsConst(n.X, constant.String) {
    		n.SetBounded(bounded(r, int64(len(ir.StringVal(n.X)))))
    		if base.Flag.LowerM != 0 && n.Bounded() && !ir.IsConst(n.Index, constant.Int) {
    			base.Warn("index bounds check elided")
    		}
    	}
    	return n
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/func.go

    			n.SetType(nil)
    			return n
    		}
    		if !checkmake(t, "len", &l) || r != nil && !checkmake(t, "cap", &r) {
    			n.SetType(nil)
    			return n
    		}
    		if ir.IsConst(l, constant.Int) && r != nil && ir.IsConst(r, constant.Int) && constant.Compare(l.Val(), token.GTR, r.Val()) {
    			base.Errorf("len larger than cap in make(%v)", t)
    			n.SetType(nil)
    			return n
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/memcombine.go

    	ptr := a[0].store.Args[0]
    
    	// Check for constant stores
    	isConst := true
    	for i := int64(0); i < n; i++ {
    		switch a[i].store.Args[1].Op {
    		case OpConst32, OpConst16, OpConst8, OpConstBool:
    		default:
    			isConst = false
    			break
    		}
    	}
    	if isConst {
    		// Modify root to do all the stores.
    		var c int64
    		mask := int64(1)<<(8*size) - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/KtVariableLikeSymbol.kt

    public typealias KtPropertySymbol = KaPropertySymbol
    
    public abstract class KaKotlinPropertySymbol : KaPropertySymbol(), KaPossibleMultiplatformSymbol {
        public abstract val isLateInit: Boolean
    
        public abstract val isConst: Boolean
    
        abstract override fun createPointer(): KaSymbolPointer<KaKotlinPropertySymbol>
    }
    
    public typealias KtKotlinPropertySymbol = KaKotlinPropertySymbol
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/builtin.go

    		// BUCKETSIZE runtime.makemap will allocate the buckets on the heap.
    		// Maximum key and elem size is 128 bytes, larger objects
    		// are stored with an indirection. So max bucket size is 2048+eps.
    		if !ir.IsConst(hint, constant.Int) ||
    			constant.Compare(hint.Val(), token.LEQ, constant.MakeInt64(abi.MapBucketCount)) {
    
    			// In case hint is larger than BUCKETSIZE runtime.makemap
    			// will allocate the buckets on the heap, see #20184
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top