[Laszlo-dev] For Review: Change 20080108-dda-X Summary: SWF9: Added support for 'cast' and 'is'
dda at ddanderson.com
Tue Jan 8 13:53:38 PST 2008
Change 20080108-dda-X by dda at lester.local on 2008-01-08 16:51:26 EST
Summary: SWF9: Added support for 'cast' and 'is'
Bugs Fixed: LPP-5336
Technical Reviewer: ptw (pending)
QA Reviewer: hminsky (pending)
Doc Reviewer: (pending)
Building on support in trunk just added for 'cast' and 'is', this
allows these keywords to be passed through and emitted as is to
and 'is' so they are not handled directly within the compiler, but
SWF9ParseTreePrinter.java: added knowledge of 'cast' and 'is'
to emit these as is.
1) Imported a few tests that use cast/is from lztest-class-impl.lzx
a private copy of LzNode.js:
var xf1 = ( (new Sundae()) cast Vanilla instanceof Number );
var xt1 = ( (new Number()) cast Object instanceof Number );
var xf2 = ( (new Sundae()) cast Vanilla is Number );
var xt2 = ( (new Number()) cast Object is Number );
(along with modified versions of Sundae and Vanilla).
Verified that these compiled and emitted the same in the output
fed to the third party compiler.
2) did smoketest
Java/C/C++, Berkeley DB, systems consultant
email: dda at ddanderson.com
More information about the Laszlo-dev