improved HB_P_SEND for execution speed

This commit is contained in:
Antonio Linares
2002-01-21 13:05:13 +00:00
parent 2005903d38
commit c5bbae5a06

View File

@@ -604,11 +604,20 @@ void HB_EXPORT hb_vmExecute( const BYTE * pCode, PHB_SYMB pSymbols )
break;
case HB_P_SEND:
hb_itemClear( &hb_stack.Return );
if( ( &hb_stack.Return )->type )
hb_itemClear( &hb_stack.Return );
hb_vmSend( pCode[ w + 1 ] + ( pCode[ w + 2 ] * 256 ) );
hb_itemCopy( hb_stackTopItem(), &hb_stack.Return );
hb_stackPush();
w += 3;
if( pCode[ 3 ] == HB_P_POP )
w++;
else
{
hb_itemCopy( hb_stackTopItem(), &hb_stack.Return );
hb_stackPush();
}
break;
case HB_P_SENDSHORT: