Index: src/runtime.h |
=================================================================== |
--- src/runtime.h (revision 3911) |
+++ src/runtime.h (working copy) |
@@ -367,6 +367,15 @@ |
#undef F |
}; |
+ enum CallingConvention { |
+ // Calling with exit frame. Callee may iterate through the stack frames |
+ // and perform garbage collection. |
+ EXIT_FRAME_CALL, |
+ |
+ // The callee always returns a valid object. |
+ DIRECT_CALL_NOT_FAILS |
Søren Thygesen Gjesse
2010/02/22 12:38:22
NOT -> NEVER.
|
+ }; |
+ |
// Runtime function descriptor. |
struct Function { |
// The JS name of the function. |
@@ -382,6 +391,8 @@ |
// Size of result, if complex (larger than a single pointer), |
// otherwise zero. |
int result_size; |
+ |
+ CallingConvention calling_convention; |
}; |
// Get the runtime function with the given function id. |