[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] nick.lloyd-bytecode-jit ee8bf25 3/9: Enable optimization o
From: |
Nickolas Lloyd |
Subject: |
[Emacs-diffs] nick.lloyd-bytecode-jit ee8bf25 3/9: Enable optimization of JITed functions. |
Date: |
Fri, 23 Dec 2016 16:33:37 +0000 (UTC) |
branch: nick.lloyd-bytecode-jit
commit ee8bf252a020c02dcd025e41d258d178c788f3c8
Author: Nickolas Lloyd <address@hidden>
Commit: Nickolas Lloyd <address@hidden>
Enable optimization of JITed functions.
; * src/bytecode-jit.c (jit_byte_code__): Set highest optimization level
when
compiling functions.
---
src/bytecode-jit.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/bytecode-jit.c b/src/bytecode-jit.c
index 3860ade..1a5e652 100644
--- a/src/bytecode-jit.c
+++ b/src/bytecode-jit.c
@@ -745,6 +745,8 @@ jit_byte_code__ (Lisp_Object byte_code)
params[0] = jit_type_void_ptr;
signature = jit_type_create_signature (jit_abi_cdecl, jit_type_nuint,
params, 1, 1);
this_func = jit_function_create (jit_context, signature);
+ jit_function_set_optimization_level (this_func,
+ jit_function_get_max_optimization_level
());
stackv = jit_value_get_param (this_func, 0);
labels = alloca (sizeof (*labels) * SBYTES (bytestr));
{