-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Reenable and fix warning 4457 - declaration of '' hides function parameter #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7264,9 +7264,8 @@ void EmitCallTarget( | |
} | ||
|
||
Emit(pnodeTarget->sxBin.pnode1, byteCodeGenerator, funcInfo, false); | ||
Js::PropertyId propertyId = pnodeTarget->sxBin.pnode2->sxPid.PropertyIdFromNameNode(); | ||
Js::RegSlot callObjLocation = pnodeTarget->sxBin.pnode1->location; | ||
Js::RegSlot protoLocation = callObjLocation; | ||
Js::PropertyId propertyId = pnodeTarget->sxBin.pnode2->sxPid.PropertyIdFromNameNode(); | ||
Js::RegSlot protoLocation = pnodeTarget->sxBin.pnode1->location; | ||
EmitSuperMethodBegin(pnodeTarget, byteCodeGenerator, funcInfo); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice. I wonder how this ended up getting into the code in the first place? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dunno. |
||
EmitMethodFld(pnodeTarget, protoLocation, propertyId, byteCodeGenerator, funcInfo); | ||
|
||
|
@@ -7289,9 +7288,8 @@ void EmitCallTarget( | |
Emit(pnodeTarget->sxBin.pnode1, byteCodeGenerator, funcInfo, false); | ||
Emit(pnodeTarget->sxBin.pnode2, byteCodeGenerator, funcInfo, false); | ||
|
||
Js::RegSlot indexLocation = pnodeTarget->sxBin.pnode2->location; | ||
Js::RegSlot callObjLocation = pnodeTarget->sxBin.pnode1->location; | ||
Js::RegSlot protoLocation = callObjLocation; | ||
Js::RegSlot indexLocation = pnodeTarget->sxBin.pnode2->location; | ||
Js::RegSlot protoLocation = pnodeTarget->sxBin.pnode1->location; | ||
EmitSuperMethodBegin(pnodeTarget, byteCodeGenerator, funcInfo); | ||
EmitMethodElem(pnodeTarget, protoLocation, indexLocation, byteCodeGenerator); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -966,7 +966,7 @@ namespace Js | |
|
||
BEGIN_TEMP_ALLOCATOR(tempAlloc, scriptContext, _u("RegexHelper")) | ||
{ | ||
results->Map([&](int i, RecyclableObject* resultObj) { | ||
results->Map([&](int resultIndex, RecyclableObject* resultObj) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this lambda parameter used at all, here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope. But I thought it would be nice to leave it there for debugging. |
||
int64 length = JavascriptConversion::ToLength( | ||
JavascriptOperators::GetProperty(resultObj, PropertyIds::length, scriptContext), | ||
scriptContext); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this
loopNumber
is the same as the parameter and that data is contained inloopHeader
, should we remove that parameter and extract that value fromloopHeader
? Otherwise, is there an assertion that should be made about whether the parameterloopNumber
matches the value inbody->GetLoopNumber(loopHeader)
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added assert