File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,6 @@ namespace x64 {
63
63
// TODO: move this to jit_generator_t class?
64
64
namespace {
65
65
66
- typedef enum {
67
- MAX_CODE_SIZE = 256 * 1024 ,
68
- } max_code_size_t ;
69
-
70
66
// TODO: move this somewhere else? Although this is only used by jit kernels
71
67
// (Roma)
72
68
inline int float2int (float x) {
@@ -2706,7 +2702,7 @@ class jit_generator_t : public Xbyak::MmapAllocator,
2706
2702
* the max_cpu_isa argument */
2707
2703
jit_generator_t (const char *name, cpu_isa_t max_cpu_isa = get_max_cpu_isa())
2708
2704
: Xbyak::MmapAllocator(name)
2709
- , Xbyak::CodeGenerator(MAX_CODE_SIZE , Xbyak::AutoGrow,
2705
+ , Xbyak::CodeGenerator(max_code_size , Xbyak::AutoGrow,
2710
2706
/* allocator=*/ this )
2711
2707
, max_cpu_isa_(max_cpu_isa) {}
2712
2708
@@ -2755,6 +2751,8 @@ class jit_generator_t : public Xbyak::MmapAllocator,
2755
2751
return Xbyak::GetError () == Xbyak::ERR_NONE;
2756
2752
}
2757
2753
2754
+ static constexpr unsigned max_code_size = 256 * 1024 ;
2755
+
2758
2756
protected:
2759
2757
virtual void generate () = 0;
2760
2758
const Xbyak::uint8 *jit_ker_ = nullptr ;
You can’t perform that action at this time.
0 commit comments