Fix --disable-ion build.
authorJan de Mooij <jdemooij@mozilla.com>
Wed, 20 Mar 2013 14:57:40 +0100
changeset 127430 609cec014f3bd9dba6665946f5d1131297a7b244
parent 127429 bbf7ea6ef2e44b8d97c5f015f106209147576f55
child 127431 787d817bf96ab99106e62235f30b3f2626fe2eff
push id24503
push userjandemooij@gmail.com
push dateWed, 03 Apr 2013 15:43:00 +0000
treeherdermozilla-central@b5cb88ccd907 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone22.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
Fix --disable-ion build.
js/src/vm/Stack-inl.h
--- a/js/src/vm/Stack-inl.h
+++ b/js/src/vm/Stack-inl.h
@@ -600,17 +600,21 @@ AbstractFramePtr::setHookData(void *data
 #endif
 }
 
 inline Value
 AbstractFramePtr::returnValue() const
 {
     if (isStackFrame())
         return asStackFrame()->returnValue();
+#ifdef JS_ION
     return *asBaselineFrame()->returnValue();
+#else
+    JS_NOT_REACHED("Invalid frame");
+#endif
 }
 
 inline void
 AbstractFramePtr::setReturnValue(const Value &rval) const
 {
     if (isStackFrame()) {
         asStackFrame()->setReturnValue(rval);
         return;