Fix --disable-ion build, part 2.

This commit is contained in:
Jan de Mooij 2013-03-20 15:22:11 +01:00
Родитель c58fc0c8cb
Коммит 895c429e35
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -51,7 +51,10 @@
#endif
#include "ion/Ion.h"
#include "ion/BaselineJIT.h"
#ifdef JS_ION
#include "ion/IonFrames-inl.h"
#endif
#include "jsatominlines.h"
#include "jsboolinlines.h"
@ -3512,11 +3515,11 @@ js::Lambda(JSContext *cx, HandleFunction fun, HandleObject parent)
if (fun->isArrow()) {
// Note that this will assert if called from Ion code. Ion can't yet
// emit code for a bound arrow function (bug 851913).
AbstractFramePtr frame = NullFramePtr();
AbstractFramePtr frame = cx->fp();
#ifdef JS_ION
if (cx->fp()->runningInIon())
frame = ion::GetTopBaselineFrame(cx);
else
frame = cx->fp();
#endif
if (!ComputeThis(cx, frame))
return NULL;