Skip to content

Instantly share code, notes, and snippets.

@fujii
Created June 26, 2019 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fujii/a0137a9c7cc7de30c955b1301f99bea5 to your computer and use it in GitHub Desktop.
Save fujii/a0137a9c7cc7de30c955b1301f99bea5 to your computer and use it in GitHub Desktop.
Using LLInt CLoop on WebKit Windows x64
diff --git a/Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h b/Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h
index 54658dd1dab..b936f7d4067 100644
--- a/Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h
+++ b/Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h
@@ -56,7 +56,7 @@ namespace JSC {
template<PtrTag> class MacroAssemblerCodePtr;
-enum OpcodeID : unsigned;
+enum OpcodeID : uint64_t;
// FunctionPtr:
//
diff --git a/Source/JavaScriptCore/bytecode/Opcode.h b/Source/JavaScriptCore/bytecode/Opcode.h
index c921dd813c6..6f791656a86 100644
--- a/Source/JavaScriptCore/bytecode/Opcode.h
+++ b/Source/JavaScriptCore/bytecode/Opcode.h
@@ -61,17 +61,17 @@ const int numOpcodeIDs = NUMBER_OF_BYTECODE_IDS + NUMBER_OF_BYTECODE_HELPER_IDS;
#endif
#define OPCODE_ID_ENUM(opcode, length) opcode,
- enum OpcodeID : unsigned { FOR_EACH_OPCODE_ID(OPCODE_ID_ENUM) };
+ enum OpcodeID : uint64_t { FOR_EACH_OPCODE_ID(OPCODE_ID_ENUM) };
#undef OPCODE_ID_ENUM
#if ENABLE(C_LOOP) && !HAVE(COMPUTED_GOTO)
#define OPCODE_ID_ENUM(opcode, length) opcode##_wide16 = numOpcodeIDs + opcode,
- enum OpcodeIDWide16 : unsigned { FOR_EACH_OPCODE_ID(OPCODE_ID_ENUM) };
+ enum OpcodeIDWide16 : uint64_t { FOR_EACH_OPCODE_ID(OPCODE_ID_ENUM) };
#undef OPCODE_ID_ENUM
#define OPCODE_ID_ENUM(opcode, length) opcode##_wide32 = numOpcodeIDs * 2 + opcode,
- enum OpcodeIDWide32 : unsigned { FOR_EACH_OPCODE_ID(OPCODE_ID_ENUM) };
+ enum OpcodeIDWide32 : uint64_t { FOR_EACH_OPCODE_ID(OPCODE_ID_ENUM) };
#undef OPCODE_ID_ENUM
#endif
diff --git a/Source/JavaScriptCore/parser/Nodes.h b/Source/JavaScriptCore/parser/Nodes.h
index 60ba5eea2d5..e71ae2502f4 100644
--- a/Source/JavaScriptCore/parser/Nodes.h
+++ b/Source/JavaScriptCore/parser/Nodes.h
@@ -39,7 +39,7 @@
namespace JSC {
- enum OpcodeID : unsigned;
+ enum OpcodeID : uint64_t;
class ArgumentListNode;
class BytecodeGenerator;
diff --git a/Source/JavaScriptCore/profiler/ProfilerBytecode.h b/Source/JavaScriptCore/profiler/ProfilerBytecode.h
index 72c66c5c34e..60c53b617e7 100644
--- a/Source/JavaScriptCore/profiler/ProfilerBytecode.h
+++ b/Source/JavaScriptCore/profiler/ProfilerBytecode.h
@@ -30,7 +30,7 @@
namespace JSC {
-enum OpcodeID : unsigned;
+enum OpcodeID : uint64_t;
namespace Profiler {
diff --git a/Source/cmake/WebKitFeatures.cmake b/Source/cmake/WebKitFeatures.cmake
index 7c01617aa88..e14b402d07e 100644
--- a/Source/cmake/WebKitFeatures.cmake
+++ b/Source/cmake/WebKitFeatures.cmake
@@ -62,7 +62,7 @@ endmacro()
macro(WEBKIT_OPTION_BEGIN)
set(_SETTING_WEBKIT_OPTIONS TRUE)
- if (WTF_CPU_ARM64 OR WTF_CPU_X86_64)
+ if (0)
set(ENABLE_JIT_DEFAULT ON)
set(ENABLE_FTL_DEFAULT ON)
set(USE_SYSTEM_MALLOC_DEFAULT OFF)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment