[Top][All Lists]

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

Re: [Gnash-dev] Re: no AVM2 for a while?

From: Matthias Kramm
Subject: Re: [Gnash-dev] Re: no AVM2 for a while?
Date: Sun, 16 Aug 2009 11:09:20 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Sat, Aug 15, 2009 at 08:56:31AM -0600, Rob Savoye <address@hidden> wrote:
>   I haven't tried to keep up to date on as3compile this summer, as once
> I created a new testsuite with Haxe in May, we kindof got stuck with it.
> One issue is namely support for older swf versions. Haxe supports at
> least back to v6. The advantage to this is that for an API testsuite,
> which is basically what we have for ActionScript, can be used to cover
> all swf versions from v6 to v10. 

Yes, that makes sense I guess. I see you're using the preprocessor
a lot for cases where the API changed between AVM1 and AVM2, but
use mostly the same code otherwise.

I could imagine that Haxe is a bit behind when it comes to employing
the whole spectrum of AS3.0 opcodes/features (like namespace
visibility, prototypes of (slotted) inner functions, finally-style
lookupswitch etc.), but that's stuff that doesn't have an AS2
equivalent, anyway.

Speaking of which, as3compile has its own testsuite (only for 
syntax/bytecode, not for API), that generates all kinds of obscure
(but working!) bytecode combinations. I wonder whether you can use 
that for testing Gnash's AVM2 implementation, too:

>   The other issue that you probably can address is we use the type
> functions in Haxe pretty heavily in the test cases, as for API testing,
> the return data type, parameters, etc... is all very important. Maybe
> as3compile or obscure ActionScript commands can do the same thing, I
> don't know.

Well you can use the built-in typeof(), but that's about it. as3compile,
unlike Haxe, doesn't have it's own API. 
Maybe whatever Haxe does for "Type.typeof" can be ported to vanilla


reply via email to

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