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

Unified Diff: src/virtual-frame-arm.h

Issue 55003: Make VirtualFrame::CallStub on IA32 responsible for moving arguments... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « src/virtual-frame.cc ('k') | src/virtual-frame-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/virtual-frame-arm.h
===================================================================
--- src/virtual-frame-arm.h (revision 1625)
+++ src/virtual-frame-arm.h (working copy)
@@ -248,27 +248,33 @@
// Push a try-catch or try-finally handler on top of the virtual frame.
void PushTryHandler(HandlerType type);
- // Call a code stub, given the number of arguments it expects on (and
- // removes from) the top of the physical frame.
+ // Call stub given the number of arguments it expects on (and
+ // removes from) the stack.
Result CallStub(CodeStub* stub, int arg_count);
- Result CallStub(CodeStub* stub, Result* arg, int arg_count);
- Result CallStub(CodeStub* stub, Result* arg0, Result* arg1, int arg_count);
- // Call the runtime, given the number of arguments expected on (and
- // removed from) the top of the physical frame.
+ // Call stub that expects its argument in r0. The argument is given
+ // as a result which must be the register r0.
+ Result CallStub(CodeStub* stub, Result* arg);
+
+ // Call stub that expects its arguments in r1 and r0. The arguments
+ // are given as results which must be the appropriate registers.
+ Result CallStub(CodeStub* stub, Result* arg0, Result* arg1);
+
+ // Call runtime given the number of arguments expected on (and
+ // removed from) the stack.
Result CallRuntime(Runtime::Function* f, int arg_count);
Result CallRuntime(Runtime::FunctionId id, int arg_count);
- // Invoke a builtin, given the number of arguments it expects on (and
- // removes from) the top of the physical frame.
+ // Invoke builtin given the number of arguments it expects on (and
+ // removes from) the stack.
Result InvokeBuiltin(Builtins::JavaScript id,
InvokeJSFlags flag,
Result* arg_count_register,
int arg_count);
- // Call into a JS code object, given the number of arguments it
- // removes from the top of the physical frame.
- // Register arguments are passed as results and consumed by the call.
+ // Call into an IC stub given the number of arguments it removes
+ // from the stack. Register arguments are passed as results and
+ // consumed by the call.
Result CallCodeObject(Handle<Code> ic,
RelocInfo::Mode rmode,
int dropped_args);
« no previous file with comments | « src/virtual-frame.cc ('k') | src/virtual-frame-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698