зеркало из https://github.com/mozilla/gecko-dev.git
Fix --disable-ion build, part 2.
This commit is contained in:
Родитель
c58fc0c8cb
Коммит
895c429e35
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче