From 819df442e4e1c7cb64e83d8eeebf346152051df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Thu, 11 Sep 2014 12:49:50 +0200 Subject: [PATCH] 2014-09-11 12:49 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/debug/dbgentry.c % optimized memvar updating --- ChangeLog.txt | 4 ++++ src/debug/dbgentry.c | 14 ++------------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index df13e1d11a..970175dc66 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,10 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2014-09-11 12:49 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/debug/dbgentry.c + % optimized memvar updating + 2014-09-10 00:51 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/vm/hvm.c ! added missing HB_STACK_TLS_PRELOAD - thanks to Teo diff --git a/src/debug/dbgentry.c b/src/debug/dbgentry.c index d1f98608cb..d7a5bd1816 100644 --- a/src/debug/dbgentry.c +++ b/src/debug/dbgentry.c @@ -1718,19 +1718,9 @@ static void hb_dbgVarSet( HB_VARINFO * scope, PHB_ITEM xNewValue ) hb_itemCopy( hb_dbgVarGet( scope ), xNewValue ); break; case 'M': - { - PHB_DYNS pDynSym = hb_dynsymFind( "__MVPUT" ); - - if( pDynSym && hb_dynsymIsFunction( pDynSym ) ) - { - hb_vmPushDynSym( pDynSym ); - hb_vmPushNil(); - hb_vmPushString( scope->szName, strlen( scope->szName ) ); - hb_vmPush( xNewValue ); - hb_vmDo( 2 ); - } + hb_memvarSetValue( hb_dynsymSymbol( hb_dynsymGet( scope->szName ) ), + xNewValue ); break; - } } }