Fix ARM build.

This commit is contained in:
David Anderson 2012-07-31 17:47:49 -07:00
parent 56597a8412
commit 104b645161
2 changed files with 7 additions and 1 deletions

View File

@ -138,6 +138,11 @@ class IonExitFooterFrame
inline const VMFunction *function() const {
return function_;
}
// This should only be called for function()->outParam == Type_Handle
Value *outVp() {
return reinterpret_cast<Value *>(reinterpret_cast<char *>(this) - sizeof(Value));
}
};
class IonOsrFrameLayout : public IonJSFrameLayout

View File

@ -634,7 +634,8 @@ IonCompartment::generateVMWrapper(JSContext *cx, const VMFunction &f)
break;
case Type_Handle:
outReg = regs.takeAny();
outReg = r4;
regs.take(outReg);
masm.Push(UndefinedValue());
masm.ma_mov(sp, outReg);
break;