Skip to content

Commit

Permalink
Merge branch 'opt/decoder_skip' of https://github.com/bytedance/sonic
Browse files Browse the repository at this point in the history
…into opt/decoder_skip
  • Loading branch information
AsterDY committed Aug 26, 2024
2 parents fb0fdb9 + 79136d1 commit 868fc20
Show file tree
Hide file tree
Showing 25 changed files with 1,166 additions and 1,238 deletions.
150 changes: 70 additions & 80 deletions internal/native/neon/f32toa_arm64.s

Large diffs are not rendered by default.

196 changes: 93 additions & 103 deletions internal/native/neon/f64toa_arm64.s

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions internal/native/neon/get_by_path_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ lCPI0_2:
// .p2align 2, 0x00
_get_by_path:
WORD $0xd10343ff // sub sp, sp, #208
WORD $0xa906effc // stp x28, x27, [sp, #104]
WORD $0xa907e7fa // stp x26, x25, [sp, #120]
WORD $0xa908dff8 // stp x24, x23, [sp, #136]
WORD $0xa909d7f6 // stp x22, x21, [sp, #152]
WORD $0xa90acff4 // stp x20, x19, [sp, #168]
WORD $0xa90bfbfd // stp fp, lr, [sp, #184]
WORD $0xa9066ffc // stp x28, x27, [sp, #96]
WORD $0xa90767fa // stp x26, x25, [sp, #112]
WORD $0xa9085ff8 // stp x24, x23, [sp, #128]
WORD $0xa90957f6 // stp x22, x21, [sp, #144]
WORD $0xa90a4ff4 // stp x20, x19, [sp, #160]
WORD $0xa90b7bfd // stp fp, lr, [sp, #176]
WORD $0xa93ffbfd // stp fp, lr, [sp, #-8]
WORD $0xd10023fd // sub fp, sp, #8
WORD $0xf9400448 // ldr x8, [x2, #8]
Expand Down Expand Up @@ -4668,12 +4668,12 @@ LBB0_831:
WORD $0x92800028 // mov x8, #-2
LBB0_832:
WORD $0xaa0803e0 // mov x0, x8
WORD $0xa94bfbfd // ldp fp, lr, [sp, #184]
WORD $0xa94acff4 // ldp x20, x19, [sp, #168]
WORD $0xa949d7f6 // ldp x22, x21, [sp, #152]
WORD $0xa948dff8 // ldp x24, x23, [sp, #136]
WORD $0xa947e7fa // ldp x26, x25, [sp, #120]
WORD $0xa946effc // ldp x28, x27, [sp, #104]
WORD $0xa94b7bfd // ldp fp, lr, [sp, #176]
WORD $0xa94a4ff4 // ldp x20, x19, [sp, #160]
WORD $0xa94957f6 // ldp x22, x21, [sp, #144]
WORD $0xa9485ff8 // ldp x24, x23, [sp, #128]
WORD $0xa94767fa // ldp x26, x25, [sp, #112]
WORD $0xa9466ffc // ldp x28, x27, [sp, #96]
WORD $0x910343ff // add sp, sp, #208
WORD $0xd65f03c0 // ret
LBB0_833:
Expand Down
34 changes: 15 additions & 19 deletions internal/native/neon/html_escape_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ lCPI0_1:
// .byte 15

_html_escape:
WORD $0xd10083ff // sub sp, sp, #32
WORD $0xa900fbfd // stp fp, lr, [sp, #8]
WORD $0xa9be7bfd // stp fp, lr, [sp, #-32]!
WORD $0xa93ffbfd // stp fp, lr, [sp, #-8]
WORD $0xd10023fd // sub fp, sp, #8
WORD $0xaa0203e8 // mov x8, x2
Expand All @@ -69,27 +68,27 @@ _html_escape:
WORD $0x4f07e441 // movi.16b v1, #226
WORD $0x4f07e7a2 // movi.16b v2, #253
Lloh0:
WORD $0x10fffd88 // adr x8, lCPI0_0 $-80(%rip)
WORD $0x10fffda8 // adr x8, lCPI0_0 $-76(%rip)
Lloh1:
WORD $0x3dc00103 // ldr q3, [x8, lCPI0_0@PAGEOFF] $0(%rip)
WORD $0x4f01e784 // movi.16b v4, #60
Lloh2:
WORD $0x10fffda8 // adr x8, lCPI0_1 $-76(%rip)
WORD $0x10fffdc8 // adr x8, lCPI0_1 $-72(%rip)
Lloh3:
WORD $0x3dc00105 // ldr q5, [x8, lCPI0_1@PAGEOFF] $0(%rip)
WORD $0x52800029 // mov w9, #1
WORD $0xd2c0080a // mov x10, #274877906944
WORD $0xf2ea000a // movk x10, #20480, lsl #48
WORD $0x52801c4b // mov w11, #226
Lloh4:
WORD $0x10001e2c // adr x12, __HtmlQuoteTab $964(%rip)
WORD $0x10001dcc // adr x12, __HtmlQuoteTab $952(%rip)
Lloh5:
WORD $0x9100018c // add x12, x12, __HtmlQuoteTab@PAGEOFF $0(%rip)
WORD $0xaa0003ee // mov x14, x0
WORD $0xaa0203e8 // mov x8, x2
LBB0_2:
WORD $0xf10005bf // cmp x13, #1
WORD $0x54001ceb // b.lt LBB0_59 $924(%rip)
WORD $0x54001cab // b.lt LBB0_59 $916(%rip)
WORD $0xf1003c3f // cmp x1, #15
WORD $0x1a9f97e5 // cset w5, hi
WORD $0xaa0d03f1 // mov x17, x13
Expand Down Expand Up @@ -191,13 +190,13 @@ LBB0_21:
WORD $0xf100009f // cmp x4, #0
WORD $0x9a8f1205 // csel x5, x16, x15, ne
WORD $0xb6f803e5 // tbz x5, #63, LBB0_32 $124(%rip)
WORD $0x1400007c // b LBB0_57 $496(%rip)
WORD $0x1400007b // b LBB0_57 $492(%rip)
LBB0_22:
WORD $0x5ac0020f // rbit w15, w16
WORD $0x5ac011ef // clz w15, w15
WORD $0x8b1101e5 // add x5, x15, x17
WORD $0xb6f80345 // tbz x5, #63, LBB0_32 $104(%rip)
WORD $0x14000077 // b LBB0_57 $476(%rip)
WORD $0x14000076 // b LBB0_57 $472(%rip)
LBB0_23:
WORD $0x7100209f // cmp w4, #8
WORD $0x540007c3 // b.lo LBB0_42 $248(%rip)
Expand Down Expand Up @@ -228,7 +227,7 @@ LBB0_30:
WORD $0xaa2f03ef // mvn x15, x15
WORD $0x8b0e01e5 // add x5, x15, x14
LBB0_31:
WORD $0xb7f80be5 // tbnz x5, #63, LBB0_57 $380(%rip)
WORD $0xb7f80bc5 // tbnz x5, #63, LBB0_57 $376(%rip)
LBB0_32:
WORD $0x8b0501ce // add x14, x14, x5
WORD $0x8b050108 // add x8, x8, x5
Expand All @@ -243,7 +242,7 @@ LBB0_32:
WORD $0x8b315181 // add x1, x12, w17, uxtw #4
WORD $0xb9800031 // ldrsw x17, [x1]
WORD $0xeb1101ad // subs x13, x13, x17
WORD $0x54000b4b // b.lt LBB0_58 $360(%rip)
WORD $0x54000b0b // b.lt LBB0_58 $352(%rip)
LBB0_35:
WORD $0xf1001224 // subs x4, x17, #4
WORD $0x5400010b // b.lt LBB0_37 $32(%rip)
Expand Down Expand Up @@ -294,7 +293,7 @@ LBB0_47:
WORD $0xcb0e01ef // sub x15, x15, x14
WORD $0x8b0401e5 // add x5, x15, x4
WORD $0xb6fff965 // tbz x5, #63, LBB0_32 $-212(%rip)
WORD $0x14000028 // b LBB0_57 $160(%rip)
WORD $0x14000027 // b LBB0_57 $156(%rip)
LBB0_48:
WORD $0x78402485 // ldrh w5, [x4], #2
WORD $0x78002605 // strh w5, [x16], #2
Expand Down Expand Up @@ -323,10 +322,10 @@ LBB0_50:
WORD $0xb9800031 // ldrsw x17, [x1]
WORD $0xeb1101ad // subs x13, x13, x17
WORD $0x54fff7ea // b.ge LBB0_35 $-260(%rip)
WORD $0x14000017 // b LBB0_58 $92(%rip)
WORD $0x14000015 // b LBB0_58 $84(%rip)
LBB0_54:
WORD $0xf10005ad // subs x13, x13, #1
WORD $0x540002eb // b.lt LBB0_59 $92(%rip)
WORD $0x540002ab // b.lt LBB0_59 $84(%rip)
WORD $0x3800150b // strb w11, [x8], #1
WORD $0xaa0e03f0 // mov x16, x14
WORD $0x910005ce // add x14, x14, #1
Expand All @@ -336,8 +335,7 @@ LBB0_56:
WORD $0xcb020108 // sub x8, x8, x2
WORD $0xf9000068 // str x8, [x3]
WORD $0xcb0001c0 // sub x0, x14, x0
WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
WORD $0x910083ff // add sp, sp, #32
WORD $0xa8c27bfd // ldp fp, lr, [sp], #32
WORD $0xd65f03c0 // ret
LBB0_57:
WORD $0x8b0200a9 // add x9, x5, x2
Expand All @@ -346,17 +344,15 @@ LBB0_57:
WORD $0xf9000068 // str x8, [x3]
WORD $0xcb0e0008 // sub x8, x0, x14
WORD $0x8b050100 // add x0, x8, x5
WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
WORD $0x910083ff // add sp, sp, #32
WORD $0xa8c27bfd // ldp fp, lr, [sp], #32
WORD $0xd65f03c0 // ret
LBB0_58:
WORD $0xcb020108 // sub x8, x8, x2
WORD $0xf9000068 // str x8, [x3]
LBB0_59:
WORD $0xaa2e03e8 // mvn x8, x14
WORD $0x8b000100 // add x0, x8, x0
WORD $0xa940fbfd // ldp fp, lr, [sp, #8]
WORD $0x910083ff // add sp, sp, #32
WORD $0xa8c27bfd // ldp fp, lr, [sp], #32
WORD $0xd65f03c0 // ret
// .p2align 3, 0x00
__HtmlQuoteTab:
Expand Down
Loading

0 comments on commit 868fc20

Please sign in to comment.