Permalink
Browse files

extern inline alarm_check, and various

use alarm_check as inline internally, but still provide an exported
version. alarm_check is hot code in the scheduler loop.
add slowness to object.pmc DESCRIPTION with vtable overrides.
coding-style in Integer.set_integer_native.
  • Loading branch information...
1 parent c5e2eca commit 9e1517959b71a94f778612aa83b6df9ccf8ed0a8 @rurban rurban committed Jun 29, 2014
Showing with 6 additions and 2 deletions.
  1. +1 −0 src/alarm.c
  2. +2 −2 src/pmc/integer.pmc
  3. +3 −0 src/pmc/object.pmc
View
@@ -149,6 +149,7 @@ set the alarm.
*/
PARROT_EXPORT
+PARROT_INLINE
int
Parrot_alarm_check(ARGMOD(UINTVAL* last_serial))
{
View
@@ -985,7 +985,7 @@ Calculates modulus in place.
"int modulus by zero");
VTABLE_set_integer_native(INTERP, SELF,
- Parrot_util_intval_mod(SELF.get_integer() , value));
+ Parrot_util_intval_mod(SELF.get_integer(), value));
}
@@ -995,7 +995,7 @@ Calculates modulus in place.
"int modulus by zero");
VTABLE_set_integer_native(INTERP, SELF,
- Parrot_util_intval_mod(SELF.get_integer() , (INTVAL)value));
+ Parrot_util_intval_mod(SELF.get_integer(), (INTVAL)value));
}
/*
View
@@ -9,6 +9,9 @@ src/pmc/object.pmc - Object PMC
Implements an instance of a class.
+TODO: If a vtable override exists, calls the found method via the slow
+Parrot_ext_call, which creates a new interp, task and calls a new runloop.
+
=head2 Functions
=over 4

0 comments on commit 9e15179

Please sign in to comment.