| Index: src/ia32/macro-assembler-ia32.h
|
| ===================================================================
|
| --- src/ia32/macro-assembler-ia32.h (revision 3964)
|
| +++ src/ia32/macro-assembler-ia32.h (working copy)
|
| @@ -349,7 +349,6 @@
|
| void StubReturn(int argc);
|
|
|
| // Call a runtime routine.
|
| - // Eventually this should be used for all C calls.
|
| void CallRuntime(Runtime::Function* f, int num_arguments);
|
|
|
| // Call a runtime function, returning the CodeStub object called.
|
| @@ -367,12 +366,34 @@
|
| 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
|
| - // of arguments.
|
| - void TailCallRuntime(const ExternalReference& ext,
|
| + // Like JumpToExternalReference, but also takes care of passing the number
|
| + // of parameters.
|
| + void TailCallExternalReference(const ExternalReference& ext,
|
| + int num_arguments,
|
| + int result_size);
|
| +
|
| + // Convenience function: tail call a runtime routine (jump).
|
| + void TailCallRuntime(Runtime::FunctionId fid,
|
| int num_arguments,
|
| int result_size);
|
|
|
| + // Before calling a C-function from generated code, align arguments on stack.
|
| + // After aligning the frame, arguments must be stored in esp[0], esp[4],
|
| + // etc., not pushed. The argument count assumes all arguments are word sized.
|
| + // Some compilers/platforms require the stack to be aligned when calling
|
| + // C++ code.
|
| + // Needs a scratch register to do some arithmetic. This register will be
|
| + // trashed.
|
| + void PrepareCallCFunction(int num_arguments, Register scratch);
|
| +
|
| + // Calls a C function and cleans up the space for arguments allocated
|
| + // by PrepareCallCFunction. The called function is not allowed to trigger a
|
| + // garbage collection, since that might move the code and invalidate the
|
| + // return address (unless this is somehow accounted for by the called
|
| + // function).
|
| + void CallCFunction(ExternalReference function, int num_arguments);
|
| + void CallCFunction(Register function, int num_arguments);
|
| +
|
| void PushHandleScope(Register scratch);
|
|
|
| // Pops a handle scope using the specified scratch register and
|
| @@ -384,7 +405,7 @@
|
| Object* TryPopHandleScope(Register saved, Register scratch);
|
|
|
| // Jump to a runtime routine.
|
| - void JumpToRuntime(const ExternalReference& ext);
|
| + void JumpToExternalReference(const ExternalReference& ext);
|
|
|
|
|
| // ---------------------------------------------------------------------------
|
|
|