Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jit(arm64): support call instruction #221

Merged
merged 32 commits into from
Feb 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wasm/jit/jit_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (c *arm64Compiler) returnFunction() error {
// At this point, we have
//
// [......., ra.caller, rb.caller, rc.caller, _, ra.current, rb.current, rc.current, _, ...] <- call frame stack's data region (somewhere in the memory)
// ^
// ^
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this should be on comma as this points to the address of a struct, not any specific field.

// callFrameStackTopAddressRegister
// (absolute address of &callFrameStack[engine.callFrameStackPointer])
//
Expand Down Expand Up @@ -672,7 +672,7 @@ func (c *arm64Compiler) callFunction(addr wasm.FunctionAddress, functype *wasm.F
// At this point, we have:
//
// [..., ra.current, rb.current, rc.current, _, ra.next, rb.next, rc.next, ...] <- call frame stack's data region (somewhere in the memory)
// ^
// ^
// callFrameStackTopAddressRegister
// (absolute address of &callFrame[engine.callFrameStackPointer]])
//
Expand Down