Bug 812906 - Statically initialize GetIntrinsicValueInfo in IM. r=nicolas.b.pierron

This commit is contained in:
Till Schneidereit 2012-11-18 22:00:37 +01:00
parent 25f273c882
commit f43a8c5bdf

View File

@ -775,19 +775,19 @@ CodeGenerator::visitCallDOMNative(LCallDOMNative *call)
return true; return true;
} }
typedef bool (*GetIntrinsicValueFn)(JSContext *cx, HandlePropertyName, MutableHandleValue);
static const VMFunction GetIntrinsicValueInfo =
FunctionInfo<GetIntrinsicValueFn>(GetIntrinsicValue);
bool bool
CodeGenerator::visitCallGetIntrinsicValue(LCallGetIntrinsicValue *lir) CodeGenerator::visitCallGetIntrinsicValue(LCallGetIntrinsicValue *lir)
{ {
typedef bool (*pf)(JSContext *cx, HandlePropertyName, MutableHandleValue);
static const VMFunction Info = FunctionInfo<pf>(GetIntrinsicValue);
pushArg(ImmGCPtr(lir->mir()->name())); pushArg(ImmGCPtr(lir->mir()->name()));
return callVM(Info, lir); return callVM(GetIntrinsicValueInfo, lir);
} }
typedef bool (*InvokeFunctionFn)(JSContext *, JSFunction *, uint32, Value *, Value *); typedef bool (*InvokeFunctionFn)(JSContext *, JSFunction *, uint32, Value *, Value *);
static const VMFunction InvokeFunctionInfo = static const VMFunction InvokeFunctionInfo = FunctionInfo<InvokeFunctionFn>(InvokeFunction);
FunctionInfo<InvokeFunctionFn>(InvokeFunction);
bool bool
CodeGenerator::emitCallInvokeFunction(LInstruction *call, Register calleereg, CodeGenerator::emitCallInvokeFunction(LInstruction *call, Register calleereg,