Bug 1090764 - Fix typo in AbstractFramePtr::numFormalArgs. (r=efaust)
authorShu-yu Guo <shu@rfrn.org>
Wed, 29 Oct 2014 19:41:43 -0700
changeset 213057 de7878c31f764b45d6525283a7069ce2083a97c7
parent 213056 0fd81599968665168cf6cfaa000300ed39097b4d
child 213058 b56b9aa70d22803fd0d9f8a68e043dc863c2efe3
push id27738
push usercbook@mozilla.com
push dateThu, 30 Oct 2014 13:46:07 +0000
treeherdermozilla-central@1aa1b23d799e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersefaust
bugs1090764
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1090764 - Fix typo in AbstractFramePtr::numFormalArgs. (r=efaust)
js/src/vm/Stack-inl.h
--- a/js/src/vm/Stack-inl.h
+++ b/js/src/vm/Stack-inl.h
@@ -480,17 +480,17 @@ AbstractFramePtr::numActualArgs() const
 
 inline unsigned
 AbstractFramePtr::numFormalArgs() const
 {
     if (isInterpreterFrame())
         return asInterpreterFrame()->numFormalArgs();
     if (isBaselineFrame())
         return asBaselineFrame()->numFormalArgs();
-    return asRematerializedFrame()->numActualArgs();
+    return asRematerializedFrame()->numFormalArgs();
 }
 
 inline Value &
 AbstractFramePtr::unaliasedVar(uint32_t i, MaybeCheckAliasing checkAliasing)
 {
     if (isInterpreterFrame())
         return asInterpreterFrame()->unaliasedVar(i, checkAliasing);
     if (isBaselineFrame())