Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack*

This commit is contained in:
Luke Wagner
2011-04-13 09:27:37 -07:00
parent b8f37db93a
commit 2ce61d2047
81 changed files with 4595 additions and 4267 deletions

View File

@@ -73,6 +73,8 @@
#include "jsobjinlines.h"
#include "vm/Stack-inl.h"
using namespace js;
/*
@@ -2106,13 +2108,13 @@ date_toJSON(JSContext *cx, uintN argc, Value *vp)
/* Step 6. */
LeaveTrace(cx);
InvokeArgsGuard args;
if (!cx->stack().pushInvokeArgs(cx, 0, &args))
if (!cx->stack.pushInvokeArgs(cx, 0, &args))
return false;
args.calleev() = toISO;
args.thisv().setObject(*obj);
if (!Invoke(cx, args, 0))
if (!Invoke(cx, args))
return false;
*vp = args.rval();
return true;