Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1653)

Unified Diff: src/runtime.h

Issue 598072: Direct call C++ functions (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698