Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for InstNop (0.26 sec)

  1. src/regexp/syntax/prog.go

    	Inst   []Inst
    	Start  int // index of start instruction
    	NumCap int // number of InstCapture insts in re
    }
    
    // An InstOp is an instruction opcode.
    type InstOp uint8
    
    const (
    	InstAlt InstOp = iota
    	InstAltMatch
    	InstCapture
    	InstEmptyWidth
    	InstMatch
    	InstFail
    	InstNop
    	InstRune
    	InstRune1
    	InstRuneAny
    	InstRuneAnyNotNL
    )
    
    var instOpNames = []string{
    	"InstAlt",
    	"InstAltMatch",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. src/regexp/onepass.go

    	i := &p.Inst[p.Start]
    	if i.Op != syntax.InstEmptyWidth || (syntax.EmptyOp(i.Arg))&syntax.EmptyBeginText == 0 {
    		return "", i.Op == syntax.InstMatch, uint32(p.Start)
    	}
    	pc = i.Out
    	i = &p.Inst[pc]
    	for i.Op == syntax.InstNop {
    		pc = i.Out
    		i = &p.Inst[pc]
    	}
    	// Avoid allocation of buffer if prefix is empty.
    	if iop(i) != syntax.InstRune || len(i.Rune) != 1 {
    		return "", i.Op == syntax.InstMatch, uint32(p.Start)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. src/regexp/syntax/compile.go

    		}
    		return f
    	}
    	panic("regexp: unhandled case in compile")
    }
    
    func (c *compiler) inst(op InstOp) frag {
    	// TODO: impose length limit
    	f := frag{i: uint32(len(c.p.Inst)), nullable: true}
    	c.p.Inst = append(c.p.Inst, Inst{Op: op})
    	return f
    }
    
    func (c *compiler) nop() frag {
    	f := c.inst(InstNop)
    	f.out = makePatchList(f.i << 1)
    	return f
    }
    
    func (c *compiler) fail() frag {
    	return frag{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  4. src/regexp/exec.go

    		t = m.add(q, i.Out, pos, cap, cond, t)
    		pc = i.Arg
    		goto Again
    	case syntax.InstEmptyWidth:
    		if cond.match(syntax.EmptyOp(i.Arg)) {
    			pc = i.Out
    			goto Again
    		}
    	case syntax.InstNop:
    		pc = i.Out
    		goto Again
    	case syntax.InstCapture:
    		if int(i.Arg) < len(cap) {
    			opos := cap[i.Arg]
    			cap[i.Arg] = pos
    			m.add(q, i.Out, pos, cap, cond, nil)
    			cap[i.Arg] = opos
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  5. src/regexp/backtrack.go

    			}
    
    		case syntax.InstEmptyWidth:
    			flag := i.context(pos)
    			if !flag.match(syntax.EmptyOp(inst.Arg)) {
    				continue
    			}
    			pc = inst.Out
    			goto CheckAndLoop
    
    		case syntax.InstNop:
    			pc = inst.Out
    			goto CheckAndLoop
    
    		case syntax.InstMatch:
    			// We found a match. If the caller doesn't care
    			// where the match is, no point going further.
    			if len(b.cap) == 0 {
    				return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ExecutorPolicy.java

         *
         * This is called after the underlying Executor has been stopped.
         */
        void onStop();
    
        /**
         * Runs the Runnable, catches all Throwables and logs them.
         *
         * The first exception caught during onExecute(), will be rethrown in onStop().
         */
        class CatchAndRecordFailures implements ExecutorPolicy {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. test-site/app/Global.java

            Suggest.createContent();
            Logger.info("Create suggest index.");
            Suggest.createSuggestFromContent();
            Logger.info("Finished setup suggest.");
        }
    
        @Override
        public void onStop(Application var1) {
            ComponentsUtil.runner.close();
            ComponentsUtil.runner.clean();
        }
    
        private void esRun() {
            ElasticsearchClusterRunner runner = new ElasticsearchClusterRunner();
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Sat Feb 23 14:02:03 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/AbstractManagedExecutor.java

                }
            } catch (InterruptedException e) {
                delegate.shutdownNow();
                throw UncheckedException.throwAsUncheckedException(e);
            }
            executorPolicy.onStop();
        }
    
        @Override
        public void setKeepAlive(int timeout, TimeUnit timeUnit) {
            if (delegate instanceof ThreadPoolExecutor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java

                addToQueue(flushOperationsCommand);
                flushOperationsCommand.await();
            }
            rethrowFailure();
        }
    
        private void rethrowFailure() {
            failureHandler.onStop();
        }
    
        private static class FlushOperationsCommand implements Runnable {
            private CountDownLatch latch = new CountDownLatch(1);
    
            @Override
            public void run() {
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"InstAlt", Const, 0},
    		{"InstAltMatch", Const, 0},
    		{"InstCapture", Const, 0},
    		{"InstEmptyWidth", Const, 0},
    		{"InstFail", Const, 0},
    		{"InstMatch", Const, 0},
    		{"InstNop", Const, 0},
    		{"InstOp", Type, 0},
    		{"InstRune", Const, 0},
    		{"InstRune1", Const, 0},
    		{"InstRuneAny", Const, 0},
    		{"InstRuneAnyNotNL", Const, 0},
    		{"IsWordChar", Func, 0},
    		{"Literal", Const, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top