* src/vm/builtintable.inc (builtintable_internal): Create builtin stubs for
authorMichael Starzinger <michi@complang.tuwien.ac.at>
Thu, 13 Sep 2007 13:48:36 +0000 (15:48 +0200)
committerMichael Starzinger <michi@complang.tuwien.ac.at>
Thu, 13 Sep 2007 13:48:36 +0000 (15:48 +0200)
LOCK_monitor_enter and LOCK_monitor_exit, because they throw exceptions.
This will slow down Cacao, we need the fast-path or inline those builtins!

--HG--
branch : michi

src/vm/builtintable.inc

index 8e95c6026ed2229973b1de7a1e696ccbbe1e7b8f..3edaa9014b00665d7ed486613a792be94517e5e4 100644 (file)
@@ -370,7 +370,7 @@ static builtintable_entry builtintable_internal[] = {
 #if defined(ENABLE_THREADS)
        {
                ICMD_MONITORENTER,
-               0,
+               BUILTINTABLE_FLAG_STUB,
                LOCK_monitor_enter,
                NULL,
                NULL,
@@ -383,7 +383,7 @@ static builtintable_entry builtintable_internal[] = {
        },
        {
                ICMD_MONITOREXIT,
-               0,
+               BUILTINTABLE_FLAG_STUB,
                LOCK_monitor_exit,
                NULL,
                NULL,