Skip to content

Commit

Permalink
Experiment: Enable FTL on Windows part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jun 29, 2024
1 parent fbe1430 commit 3d45fdf
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Source/JavaScriptCore/b3/air/opcode_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,23 @@ def endArchs(outp, archs)
writeH("OpcodeUtils") {
| outp |
outp.puts "#if ENABLE(B3_JIT)"

outp.puts "#pragma push_macro(\"RotateLeft32\")"
outp.puts "#pragma push_macro(\"RotateLeft64\")"
outp.puts "#pragma push_macro(\"RotateRight32\")"
outp.puts "#pragma push_macro(\"RotateRight64\")"
outp.puts "#pragma push_macro(\"StoreFence\")"
outp.puts "#pragma push_macro(\"LoadFence\")"
outp.puts "#pragma push_macro(\"MemoryFence\")"

outp.puts "#undef RotateLeft32"
outp.puts "#undef RotateLeft64"
outp.puts "#undef RotateRight32"
outp.puts "#undef RotateRight64"
outp.puts "#undef StoreFence"
outp.puts "#undef LoadFence"
outp.puts "#undef MemoryFence"

outp.puts "#include \"AirCustom.h\""
outp.puts "#include \"AirInst.h\""
outp.puts "#include \"AirFormTable.h\""
Expand Down Expand Up @@ -837,6 +854,15 @@ def endArchs(outp, archs)
outp.puts "}"

outp.puts "} } } // namespace JSC::B3::Air"

outp.puts "#pragma pop_macro(\"RotateLeft32\")"
outp.puts "#pragma pop_macro(\"RotateLeft64\")"
outp.puts "#pragma pop_macro(\"RotateRight32\")"
outp.puts "#pragma pop_macro(\"RotateRight64\")"
outp.puts "#pragma pop_macro(\"StoreFence\")"
outp.puts "#pragma pop_macro(\"LoadFence\")"
outp.puts "#pragma pop_macro(\"MemoryFence\")"

outp.puts "#endif // ENABLE(B3_JIT)"
}

Expand Down

0 comments on commit 3d45fdf

Please sign in to comment.