Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for funcAddress (0.28 sec)

  1. src/cmd/asm/internal/asm/parse.go

    				abi = theabi
    			}
    		}
    	}
    	p.get('>')
    	return isStatic, abi
    }
    
    // funcAddress parses an external function address. This is a
    // constrained form of the operand syntax that's always SB-based,
    // non-static, and has at most a simple integer offset:
    //
    //	[$|*]sym[<abi>][+Int](SB)
    func (p *Parser) funcAddress() (string, obj.ABI, bool) {
    	switch p.peek() {
    	case '$', '*':
    		// Skip prefix.
    		p.next()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/operand_test.go

    		{"s390x", s390xOperandTests},
    	} {
    		t.Run(sub.arch, func(t *testing.T) {
    			parser := newParser(sub.arch)
    			for _, test := range sub.tests {
    				parser.start(lex.Tokenize(test.input))
    				name, _, ok := parser.funcAddress()
    
    				isFuncSym := strings.HasSuffix(test.input, "(SB)") &&
    					// Ignore static symbols.
    					!strings.Contains(test.input, "<>")
    
    				wantName := ""
    				if isFuncSym {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
Back to top