[JAEGER] Fixed uninit var warning.

This commit is contained in:
David Anderson 2010-08-03 16:27:08 -07:00
parent 91aa99b486
commit 6505f56119

View File

@ -489,14 +489,20 @@ class GetPropCompiler : public PICStubCompiler
ReturnAddressPtr retPtr(pic.slowPathStart.callAtOffset(pic.callReturn).executableAddress()); ReturnAddressPtr retPtr(pic.slowPathStart.callAtOffset(pic.callReturn).executableAddress());
VoidStubUInt32 stub; VoidStubUInt32 stub;
if (pic.kind == ic::PICInfo::GET) switch (pic.kind) {
case ic::PICInfo::GET:
stub = ic::GetProp; stub = ic::GetProp;
else if (pic.kind == ic::PICInfo::CALL) break;
case ic::PICInfo::CALL:
stub = ic::CallProp; stub = ic::CallProp;
else if (pic.kind == ic::PICInfo::GETELEM) break;
case ic::PICInfo::GETELEM:
stub = ic::GetElem; stub = ic::GetElem;
else break;
default:
JS_NOT_REACHED("invalid pic kind for GetPropCompiler::reset"); JS_NOT_REACHED("invalid pic kind for GetPropCompiler::reset");
return;
}
MacroAssemblerCodePtr target(JS_FUNC_TO_DATA_PTR(void *, stub)); MacroAssemblerCodePtr target(JS_FUNC_TO_DATA_PTR(void *, stub));
repatcher.relinkCallerToTrampoline(retPtr, target); repatcher.relinkCallerToTrampoline(retPtr, target);