Skip to content

Conversation

@adamperlin
Copy link
Contributor

This PR reverts the behavior from #122111 which stubs out a method instead of calling the JIT for the crossgen Wasm target. Now, the JIT will be invoked as normal so that the output of method codegen can be placed in a simple object file.

Output code currently won't run (I tried this) because we aren't yet emitting a correct local count at the beginning of compiled methods.

…al JIT, since the RyuJIT backend is now emitting Wasm
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts the temporary stubbing behavior for WebAssembly (Wasm32) target in crossgen compilation. Previously, the CompileWasmStub method generated a minimal stub instead of performing actual JIT compilation. Now, the JIT is invoked normally for Wasm targets to enable proper code generation for object files.

Key changes:

  • Removed the CompileWasmStub method that generated placeholder WebAssembly bytecode
  • Simplified CompileMethodInternal to use JIT compilation uniformly across all architectures including Wasm32
  • Removed architecture-specific branching logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants