Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 545 for setOp (0.11 sec)

  1. src/cmd/compile/internal/typecheck/expr.go

    			n.SetType(nil)
    			return n
    		}
    		n.SetType(t)
    		n.SetOp(ir.OSLICESTR)
    	} else if t.IsPtr() && t.Elem().IsArray() {
    		tp = t.Elem()
    		n.SetType(types.NewSlice(tp.Elem()))
    		types.CalcSize(n.Type())
    		if hasmax {
    			n.SetOp(ir.OSLICE3ARR)
    		} else {
    			n.SetOp(ir.OSLICEARR)
    		}
    	} else if t.IsSlice() {
    		n.SetType(t)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/func.go

    	typecheckargs(n)
    	t := l.Type()
    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    	types.CheckSize(t)
    
    	switch l.Op() {
    	case ir.ODOTINTER:
    		n.SetOp(ir.OCALLINTER)
    
    	case ir.ODOTMETH:
    		l := l.(*ir.SelectorExpr)
    		n.SetOp(ir.OCALLMETH)
    
    		// typecheckaste was used here but there wasn't enough
    		// information further down the call chain to know if we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/order.go

    			// buffer during conversion. String comparison does not
    			// memorize the strings for later use, so it is safe.
    			if n.X.Op() == ir.OBYTES2STR {
    				n.X.(*ir.ConvExpr).SetOp(ir.OBYTES2STRTMP)
    			}
    			if n.Y.Op() == ir.OBYTES2STR {
    				n.Y.(*ir.ConvExpr).SetOp(ir.OBYTES2STRTMP)
    			}
    
    		case t.IsStruct() || t.IsArray():
    			// for complex comparisons, we need both args to be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/typecheck.go

    		n.Args = list
    	case *ir.ReturnStmt:
    		n.Results = list
    	case *ir.AssignListStmt:
    		if n.Op() != ir.OAS2FUNC {
    			base.Fatalf("rewriteMultiValueCall: invalid op %v", n.Op())
    		}
    		as.SetOp(ir.OAS2FUNC)
    		n.SetOp(ir.OAS2)
    		n.Rhs = make([]ir.Node, len(list))
    		for i, tmp := range list {
    			n.Rhs[i] = AssignConv(tmp, n.Lhs[i].Type(), "assignment")
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    	// same type as the variable on the lhs.
    	if ok := n.Lhs[1]; !ir.IsBlank(ok) && ok.Type().IsBoolean() {
    		call.Type().Field(1).Type = ok.Type()
    	}
    	n.Rhs = []ir.Node{call}
    	n.SetOp(ir.OAS2FUNC)
    
    	// don't generate a = *var if a is _
    	if ir.IsBlank(a) {
    		return walkExpr(typecheck.Stmt(n), init)
    	}
    
    	var_ := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(t.Elem()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/switch.go

    	// because walkExpr will lower the string
    	// conversion into a runtime call.
    	// See issue 24937 for more discussion.
    	if cond.Op() == ir.OBYTES2STR && allCaseExprsAreSideEffectFree(sw) {
    		cond := cond.(*ir.ConvExpr)
    		cond.SetOp(ir.OBYTES2STRTMP)
    	}
    
    	cond = walkExpr(cond, sw.PtrInit())
    	if cond.Op() != ir.OLITERAL && cond.Op() != ir.ONIL {
    		cond = copyExpr(cond, cond.Type(), &sw.Compiled)
    	}
    
    	base.Pos = lno
    
    	s := exprSwitch{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/expr.go

    	if n.RType != nil && n.RType.Op() == ir.OADDR {
    		addr := n.RType.(*ir.AddrExpr)
    		if addr.X.Op() == ir.OLINKSYMOFFSET {
    			r := ir.NewTypeAssertExpr(n.Pos(), n.X, n.Type())
    			if n.Op() == ir.ODYNAMICDOTTYPE2 {
    				r.SetOp(ir.ODOTTYPE2)
    			}
    			r.SetType(n.Type())
    			r.SetTypecheck(1)
    			return walkExpr(r, init)
    		}
    	}
    	return n
    }
    
    // walkIndex walks an OINDEX node.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. .github/workflows/build.yml

          - name: Configure JDK
            uses: actions/setup-java@v4
            with:
              distribution: 'zulu'
              java-version: 11
    
          - name: Configure JDK
            uses: actions/setup-java@v4
            with:
              distribution: 'zulu'
              java-version: 17
    
          - name: Setup Gradle
            uses: gradle/actions/setup-gradle@v3
    
          - name: Upload Artifacts
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 01:51:50 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  9. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MultiProjectJvmApplicationInitIntegrationTest.groovy

        def setup() {
            setupDslAndLanguage(BuildInitDsl.GROOVY, JAVA)
        }
    }
    
    class GroovyDslMultiProjectJavaApplicationInitIntegrationTest2 extends AbstractMultiProjectJvmApplicationInitIntegrationTest2 {
        def setup() {
            setupDslAndLanguage(BuildInitDsl.GROOVY, JAVA)
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. src/sync/map_bench_test.go

    			if bench.setup != nil {
    				bench.setup(b, m)
    			}
    
    			b.ResetTimer()
    
    			var i int64
    			b.RunParallel(func(pb *testing.PB) {
    				id := int(atomic.AddInt64(&i, 1) - 1)
    				bench.perG(b, pb, id*b.N, m)
    			})
    		})
    	}
    }
    
    func BenchmarkLoadMostlyHits(b *testing.B) {
    	const hits, misses = 1023, 1
    
    	benchMap(b, bench{
    		setup: func(_ *testing.B, m mapInterface) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top