From f43a8c5bdfdb0b982cc6b55e3000363b2d1baa1c Mon Sep 17 00:00:00 2001 From: Till Schneidereit Date: Sun, 18 Nov 2012 22:00:37 +0100 Subject: [PATCH] Bug 812906 - Statically initialize GetIntrinsicValueInfo in IM. r=nicolas.b.pierron --- js/src/ion/CodeGenerator.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/src/ion/CodeGenerator.cpp b/js/src/ion/CodeGenerator.cpp index 93e83c1a8fe..0f8a3c089b4 100644 --- a/js/src/ion/CodeGenerator.cpp +++ b/js/src/ion/CodeGenerator.cpp @@ -775,19 +775,19 @@ CodeGenerator::visitCallDOMNative(LCallDOMNative *call) return true; } +typedef bool (*GetIntrinsicValueFn)(JSContext *cx, HandlePropertyName, MutableHandleValue); +static const VMFunction GetIntrinsicValueInfo = + FunctionInfo(GetIntrinsicValue); + bool CodeGenerator::visitCallGetIntrinsicValue(LCallGetIntrinsicValue *lir) { - typedef bool (*pf)(JSContext *cx, HandlePropertyName, MutableHandleValue); - static const VMFunction Info = FunctionInfo(GetIntrinsicValue); - pushArg(ImmGCPtr(lir->mir()->name())); - return callVM(Info, lir); + return callVM(GetIntrinsicValueInfo, lir); } typedef bool (*InvokeFunctionFn)(JSContext *, JSFunction *, uint32, Value *, Value *); -static const VMFunction InvokeFunctionInfo = - FunctionInfo(InvokeFunction); +static const VMFunction InvokeFunctionInfo = FunctionInfo(InvokeFunction); bool CodeGenerator::emitCallInvokeFunction(LInstruction *call, Register calleereg,