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

Unified Diff: src/ia32/macro-assembler-ia32.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/ia32/macro-assembler-ia32.h
===================================================================
--- src/ia32/macro-assembler-ia32.h (revision 3911)
+++ src/ia32/macro-assembler-ia32.h (working copy)
@@ -366,13 +366,17 @@
// Convenience function: Same as above, but takes the fid instead.
Object* TryCallRuntime(Runtime::FunctionId id, int num_arguments);
- // Tail call of a runtime routine (jump).
- // Like JumpToRuntime, but also takes care of passing the number
+ // Tail call of a runtime routine (jump or equivalent if jump is not
+ // possible). Like JumpToRuntime, but also takes care of passing the number
// of arguments.
- void TailCallRuntime(const ExternalReference& ext,
+ void TailCallRuntime(Runtime::FunctionId id,
int num_arguments,
int result_size);
+ void TailCallExternalReference(const ExternalReference& ext,
+ int num_arguments,
+ int result_size);
+
void PushHandleScope(Register scratch);
// Pops a handle scope using the specified scratch register and
@@ -484,6 +488,8 @@
Object* PopHandleScopeHelper(Register saved,
Register scratch,
bool gc_allowed);
+
+ void DirectInvokeRuntime(Runtime::Function* f, InvokeFlag flag);
};

Powered by Google App Engine
This is Rietveld 408576698