- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 120 for State (0.03 sec)
-
src/cmd/go/internal/script/state.go
"context" "fmt" "internal/txtar" "io" "io/fs" "os" "os/exec" "path/filepath" "regexp" "strings" ) // A State encapsulates the current state of a running script engine, // including the script environment and any running background commands. type State struct { engine *Engine // the engine currently executing the script, if any ctx context.Context cancel context.CancelFunc file string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:02 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/internal/script/conds.go
func Condition(summary string, eval func(*State) (bool, error)) Cond { return &funcCond{eval: eval, usage: CondUsage{Summary: summary}} } type funcCond struct { eval func(*State) (bool, error) usage CondUsage } func (c *funcCond) Usage() *CondUsage { return &c.usage } func (c *funcCond) Eval(s *State, suffix string) (bool, error) { if suffix != "" { return false, ErrUsage }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 5K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/script.go
} if sc.handler == nil { return nil, errors.New("script completed without setting handler") } return sc.handler, nil } // newState returns a new script.State for executing scripts in workDir. func (s *Server) newState(ctx context.Context, workDir string) (*script.State, error) { ctx = &scriptCtx{ Context: ctx, server: s, } st, err := script.NewState(ctx, workDir, s.env) if err != nil { return nil, err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 08 19:37:03 UTC 2022 - 9K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
} func (s *state) constNil(t *types.Type) *ssa.Value { return s.f.ConstNil(t) } func (s *state) constEmptyString(t *types.Type) *ssa.Value { return s.f.ConstEmptyString(t) } func (s *state) constBool(c bool) *ssa.Value { return s.f.ConstBool(types.Types[types.TBOOL], c) } func (s *state) constInt8(t *types.Type, c int8) *ssa.Value { return s.f.ConstInt8(t, c) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/arch.go
// SSAMarkMoves marks any MOVXconst ops that need to avoid clobbering flags. SSAMarkMoves func(*State, *ssa.Block) // SSAGenValue emits Prog(s) for the Value. SSAGenValue func(*State, *ssa.Value) // SSAGenBlock emits end-of-block Progs. SSAGenValue should be called // for all values in the block before SSAGenBlock. SSAGenBlock func(s *State, b, next *ssa.Block) // LoadRegResult emits instructions that loads register-assigned result
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 03 21:05:55 UTC 2021 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/tighten.go
// Plain -> b2 // // Algorithm introduction: // 1. The start memory state of a block is InitMem, a Phi node of type mem or // an incoming memory value. // 2. The start memory state of a block is consistent with the end memory state // of its parent nodes. If the start memory state of a block is a Phi value, // then the end memory state of its parent nodes is consistent with the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 16 01:01:38 UTC 2023 - 7.7K bytes - Viewed (0) -
src/cmd/covdata/tool_test.go
} exepath := filepath.Join(subdir, prog+".exe") bargs := []string{"build", "-cover", "-o", exepath} bargs = append(bargs, flags...) gobuild(t, subdir, bargs) return exepath, subdir } type state struct { dir string exedir1 string exedir2 string exedir3 string exepath1 string exepath2 string exepath3 string tool string outdirs [4]string }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 24.5K bytes - Viewed (0) -
src/cmd/fix/jnitype.go
} var jniFix = fix{ name: "jni", date: "2017-12-04", f: jnifix, desc: `Fixes initializers of JNI's jobject and subtypes`, disabled: false, } // Old state: // // type jobject *_jobject // // New state: // // type jobject uintptr // // and similar for subtypes of jobject. // This fix finds nils initializing these types and replaces the nils with 0s. func jnifix(f *ast.File) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/lookup.go
state = ambigSel case indirect: state = ptrRecv default: state = notFound obj, _, _ = lookupFieldOrMethodImpl(V, false, m.pkg, m.name, true /* fold case */) f, _ = obj.(*Func) if f != nil { state = wrongName if f.name == m.name { // If the names are equal, f must be unexported // (otherwise the package wouldn't matter). state = unexported
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 19.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named.go
n.setState(complete) return n } // state atomically accesses the current state of the receiver. func (n *Named) state() namedState { return namedState(atomic.LoadUint32(&n.state_)) } // setState atomically stores the given state for n. // Must only be called while holding n.mu. func (n *Named) setState(state namedState) { atomic.StoreUint32(&n.state_, uint32(state)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 23.9K bytes - Viewed (0)