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 id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
milestone22.0a1
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;