removed uneeded hb_itemClear() calls in hb_vmOperatorCall() and
hb_vmOperatorCallUnary()
This commit is contained in:
@@ -2862,7 +2862,6 @@ static void hb_vmOperatorCall( PHB_ITEM pObjItem, PHB_ITEM pMsgItem, char * szSy
|
||||
* NOTE: for performance reason we don't pop the second argument.
|
||||
* We can replace the second argument with the return value.
|
||||
*/
|
||||
hb_itemClear( pObjItem );
|
||||
hb_itemCopy( pObjItem, &hb_stack.Return );
|
||||
}
|
||||
|
||||
@@ -2889,7 +2888,6 @@ static void hb_vmOperatorCallUnary( PHB_ITEM pObjItem, char * szSymbol )
|
||||
* NOTE: for performance reason we don't pop it and we don't push the
|
||||
* return value. We can replace the last element with the new value.
|
||||
*/
|
||||
hb_itemClear( pObjItem );
|
||||
hb_itemCopy( pObjItem, &hb_stack.Return );
|
||||
}
|
||||
|
||||
@@ -4864,4 +4862,4 @@ HB_FUNC( __OPGETPRF ) /* profiler: It returns an array with an opcode called and
|
||||
hb_stornl( hb_ulOpcodesCalls[ ulOpcode ], -1, 1 );
|
||||
hb_stornl( hb_ulOpcodesTime[ ulOpcode ], -1, 2 );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user