gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ASna...


From: strk
Subject: Re: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ASna...
Date: Wed, 16 Apr 2008 10:48:39 +0200

On Wed, Apr 16, 2008 at 06:54:35AM +0000, Benjamin Wolsey wrote:
> CVSROOT:      /sources/gnash
> Module name:  gnash
> Changes by:   Benjamin Wolsey <bwy>   08/04/16 06:54:35
> 
> Modified files:
>       .              : ChangeLog 
>       testsuite/actionscript.all: ASnative.as 
>       server/asobj   : Global.cpp 
> 
> Log message:
>               * server/asobj/Global.cpp: init Date class at startup
>                 so that its ASnative functions are registered.
>               * testsuite/actionscript.all/ASnative.cpp: test Date
>                 ASnative getter functions (all fine now).

You should take a look at server/asobj/ClassHierarchy.{cpp,h}.
There is the code for on-demand loading of classes (by chad).
The idea is gnash would load classes only when needed.
ASnative wasn't considered at that time, we may want to split
filling up the native table from registering global classes
so we don't load the GC if not needed (ASnative table fillup
doesn't create objects).

Note that if you explicitly initialize a class you should tell
ClassHierarchy you're doing it, so it won't waste time adding triggers
for on-demand loading.


--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]