doc: forgot to regenerate on last commit
This commit is contained in:
@@ -8,7 +8,7 @@ Use `Param()` to reference arguments by name. The `Load()` function can be used
|
||||
|
||||
[embedmd]:# (asm.go go /.*TEXT.*Second/ /RET.*/)
|
||||
```go
|
||||
TEXT("Second", "func(x, y int32) int32")
|
||||
TEXT("Second", NOSPLIT, "func(x, y int32) int32")
|
||||
y := Load(Param("y"), GP32())
|
||||
Store(y, ReturnIndex(0))
|
||||
RET()
|
||||
@@ -19,7 +19,7 @@ This `avo` code will generate the following assembly. Note that parameter refere
|
||||
[embedmd]:# (args.s s /.*func Second/ /RET/)
|
||||
```s
|
||||
// func Second(x int32, y int32) int32
|
||||
TEXT ·Second(SB), $0-12
|
||||
TEXT ·Second(SB), NOSPLIT, $0-12
|
||||
MOVL y+4(FP), AX
|
||||
MOVL AX, ret+8(FP)
|
||||
RET
|
||||
@@ -33,7 +33,7 @@ Strings and slices actually consist of multiple components under the hood: see [
|
||||
|
||||
[embedmd]:# (asm.go go /.*TEXT.*StringLen/ /RET.*/)
|
||||
```go
|
||||
TEXT("StringLen", "func(s string) int")
|
||||
TEXT("StringLen", NOSPLIT, "func(s string) int")
|
||||
strlen := Load(Param("s").Len(), GP64())
|
||||
Store(strlen, ReturnIndex(0))
|
||||
RET()
|
||||
@@ -47,7 +47,7 @@ Arrays can be indexed with the `Index()` method. For example, the following retu
|
||||
|
||||
[embedmd]:# (asm.go go /.*TEXT.*ArrayThree/ /RET.*/)
|
||||
```go
|
||||
TEXT("ArrayThree", "func(a [7]uint64) uint64")
|
||||
TEXT("ArrayThree", NOSPLIT, "func(a [7]uint64) uint64")
|
||||
a3 := Load(Param("a").Index(3), GP64())
|
||||
Store(a3, ReturnIndex(0))
|
||||
RET()
|
||||
@@ -86,7 +86,7 @@ The following function will return the `Float64` field from this struct.
|
||||
|
||||
[embedmd]:# (asm.go go /.*TEXT.*FieldFloat64/ /RET.*/)
|
||||
```go
|
||||
TEXT("FieldFloat64", "func(s Struct) float64")
|
||||
TEXT("FieldFloat64", NOSPLIT, "func(s Struct) float64")
|
||||
f64 := Load(Param("s").Field("Float64"), XMM())
|
||||
Store(f64, ReturnIndex(0))
|
||||
RET()
|
||||
@@ -98,7 +98,7 @@ Complex types `complex{64,128}` are actually just pairs of `float{32,64}` values
|
||||
|
||||
[embedmd]:# (asm.go go /.*TEXT.*FieldComplex64Imag/ /RET.*/)
|
||||
```go
|
||||
TEXT("FieldComplex64Imag", "func(s Struct) float32")
|
||||
TEXT("FieldComplex64Imag", NOSPLIT, "func(s Struct) float32")
|
||||
c64i := Load(Param("s").Field("Complex64").Imag(), XMM())
|
||||
Store(c64i, ReturnIndex(0))
|
||||
RET()
|
||||
@@ -110,7 +110,7 @@ The above methods may be composed to reference arbitrarily nested data structure
|
||||
|
||||
[embedmd]:# (asm.go go /.*TEXT.*FieldArrayTwoBTwo/ /RET.*/)
|
||||
```go
|
||||
TEXT("FieldArrayTwoBTwo", "func(s Struct) byte")
|
||||
TEXT("FieldArrayTwoBTwo", NOSPLIT, "func(s Struct) byte")
|
||||
b2 := Load(Param("s").Field("Array").Index(2).Field("B").Index(2), GP8())
|
||||
Store(b2, ReturnIndex(0))
|
||||
RET()
|
||||
|
||||
Reference in New Issue
Block a user