Skip to content

Commit

Permalink
Experiment: Enable FTL on Windows part 2: copy some of https://github…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jun 29, 2024
1 parent 9a96417 commit fbe1430
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Source/JavaScriptCore/b3/B3LowerToAir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@

#if ENABLE(B3_JIT)
#if USE(JSVALUE64)

// On Windows, there's macros for these which interfere with the opcodes
#pragma push_macro("RotateLeft32")
#pragma push_macro("RotateLeft64")
#pragma push_macro("RotateRight32")
#pragma push_macro("RotateRight64")
#pragma push_macro("StoreFence")
#pragma push_macro("LoadFence")
#pragma push_macro("MemoryFence")

#undef RotateLeft32
#undef RotateLeft64
#undef RotateRight32
#undef RotateRight64
#undef StoreFence
#undef LoadFence
#undef MemoryFence

#include "AirBlockInsertionSet.h"
#include "AirCCallSpecial.h"
#include "AirCode.h"
Expand Down Expand Up @@ -5307,5 +5325,13 @@ void lowerToAir(Procedure& procedure)
IGNORE_RETURN_TYPE_WARNINGS_END
#endif

#pragma pop_macro("RotateLeft32")
#pragma pop_macro("RotateLeft64")
#pragma pop_macro("RotateRight32")
#pragma pop_macro("RotateRight64")
#pragma pop_macro("StoreFence")
#pragma pop_macro("LoadFence")
#pragma pop_macro("MemoryFence")

#endif // USE(JSVALUE64)
#endif // ENABLE(B3_JIT)

0 comments on commit fbe1430

Please sign in to comment.