improved HB_P_SEND for execution speed
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user