swftools.git
15 years agoadded instanceof operator
kramm [Fri, 2 Jan 2009 19:49:13 +0000 (19:49 +0000)]
added instanceof operator

15 years agofixed bug in MEMBER_MULTINAME
kramm [Fri, 2 Jan 2009 19:49:02 +0000 (19:49 +0000)]
fixed bug in MEMBER_MULTINAME

15 years agofixed Number default value
kramm [Fri, 2 Jan 2009 19:48:51 +0000 (19:48 +0000)]
fixed Number default value

15 years agoremoved a few initcode relicts
kramm [Fri, 2 Jan 2009 19:48:40 +0000 (19:48 +0000)]
removed a few initcode relicts

15 years agodump out parent
kramm [Fri, 2 Jan 2009 19:47:43 +0000 (19:47 +0000)]
dump out parent

15 years agostore global functions as classes, too
kramm [Fri, 2 Jan 2009 19:47:35 +0000 (19:47 +0000)]
store global functions as classes, too

15 years agofixed mem leaks
kramm [Fri, 2 Jan 2009 19:47:24 +0000 (19:47 +0000)]
fixed mem leaks

15 years agoradically reduced default size. makes running tests faster.
kramm [Fri, 2 Jan 2009 19:47:16 +0000 (19:47 +0000)]
radically reduced default size. makes running tests faster.

15 years agorefined cut_last_push
kramm [Fri, 2 Jan 2009 19:47:05 +0000 (19:47 +0000)]
refined cut_last_push

15 years agoadded missing \n in fprintf(stderr)
kramm [Fri, 2 Jan 2009 19:46:56 +0000 (19:46 +0000)]
added missing \n in fprintf(stderr)

15 years agoadded fallthrough opcode
kramm [Fri, 2 Jan 2009 19:46:47 +0000 (19:46 +0000)]
added fallthrough opcode

15 years agodump out a method id for opcodes with a method index
kramm [Fri, 2 Jan 2009 19:46:37 +0000 (19:46 +0000)]
dump out a method id for opcodes with a method index

15 years agocutlastpush now handles newobject, newarray, too
kramm [Fri, 2 Jan 2009 19:46:28 +0000 (19:46 +0000)]
cutlastpush now handles newobject, newarray, too

15 years agowarn about internal opcodes during writing
kramm [Fri, 2 Jan 2009 19:46:19 +0000 (19:46 +0000)]
warn about internal opcodes during writing

15 years agoadded dummy __continue__ opcode
kramm [Fri, 2 Jan 2009 19:46:09 +0000 (19:46 +0000)]
added dummy __continue__ opcode

15 years agoregenerated
kramm [Fri, 2 Jan 2009 19:45:46 +0000 (19:45 +0000)]
regenerated

15 years agoregenerated
kramm [Fri, 2 Jan 2009 19:45:20 +0000 (19:45 +0000)]
regenerated

15 years agoexported trait_new_member
kramm [Fri, 2 Jan 2009 19:44:52 +0000 (19:44 +0000)]
exported trait_new_member

15 years agorenamed abc_class_(static)constructor to abc_class_get(static)constructor
kramm [Fri, 2 Jan 2009 19:44:36 +0000 (19:44 +0000)]
renamed abc_class_(static)constructor to abc_class_get(static)constructor

15 years agofixed bug in staticslot
kramm [Fri, 2 Jan 2009 19:44:25 +0000 (19:44 +0000)]
fixed bug in staticslot

15 years agofixed bug in slot assignment
kramm [Fri, 2 Jan 2009 19:44:15 +0000 (19:44 +0000)]
fixed bug in slot assignment

15 years agotrait_new_method now takes a trait list as first argument
kramm [Fri, 2 Jan 2009 19:44:05 +0000 (19:44 +0000)]
trait_new_method now takes a trait list as first argument

15 years agodump out unreferenced methods, too
kramm [Fri, 2 Jan 2009 19:43:55 +0000 (19:43 +0000)]
dump out unreferenced methods, too

15 years agoprint out trait attributes when dumping
kramm [Fri, 2 Jan 2009 19:43:45 +0000 (19:43 +0000)]
print out trait attributes when dumping

15 years agoadded test programs
kramm [Fri, 2 Jan 2009 19:43:32 +0000 (19:43 +0000)]
added test programs

15 years agotest for a stack underflow problem, too
kramm [Fri, 2 Jan 2009 19:43:22 +0000 (19:43 +0000)]
test for a stack underflow problem, too

15 years agoadded test for empty case
kramm [Fri, 2 Jan 2009 19:43:14 +0000 (19:43 +0000)]
added test for empty case

15 years agostring escaping test
kramm [Fri, 2 Jan 2009 19:43:03 +0000 (19:43 +0000)]
string escaping test

15 years agotest of variable reassignment
kramm [Fri, 2 Jan 2009 19:42:43 +0000 (19:42 +0000)]
test of variable reassignment

15 years agotest break and continue, too
kramm [Fri, 2 Jan 2009 19:42:23 +0000 (19:42 +0000)]
test break and continue, too

15 years agoadded test for finally
kramm [Fri, 2 Jan 2009 19:42:13 +0000 (19:42 +0000)]
added test for finally

15 years agoadded a syntax check for {}
kramm [Fri, 2 Jan 2009 19:41:52 +0000 (19:41 +0000)]
added a syntax check for {}

15 years agotests are named 1/2 and 2/2
kramm [Fri, 2 Jan 2009 19:41:41 +0000 (19:41 +0000)]
tests are named 1/2 and 2/2

15 years agotest hex numbers
kramm [Fri, 2 Jan 2009 19:41:30 +0000 (19:41 +0000)]
test hex numbers

15 years agoinheritance test
kramm [Fri, 2 Jan 2009 19:40:59 +0000 (19:40 +0000)]
inheritance test

15 years agotest for undefined label in break/continue
kramm [Fri, 2 Jan 2009 19:40:15 +0000 (19:40 +0000)]
test for undefined label in break/continue

15 years agoregenerated from source
kramm [Tue, 30 Dec 2008 23:07:04 +0000 (23:07 +0000)]
regenerated from source

15 years agoreworked strings
kramm [Tue, 30 Dec 2008 23:06:34 +0000 (23:06 +0000)]
reworked strings

15 years agoadded ptr_type
kramm [Tue, 30 Dec 2008 23:06:25 +0000 (23:06 +0000)]
added ptr_type

15 years agonew keyword super
kramm [Tue, 30 Dec 2008 23:06:14 +0000 (23:06 +0000)]
new keyword super

15 years agoadded void,typeof,undefined keywords
kramm [Tue, 30 Dec 2008 23:06:06 +0000 (23:06 +0000)]
added void,typeof,undefined keywords

15 years agoremoved Boolean, Number, uint, int from keywords
kramm [Tue, 30 Dec 2008 23:05:58 +0000 (23:05 +0000)]
removed Boolean, Number, uint, int from keywords

15 years agoonly allow sign in front of a number if it's safe
kramm [Tue, 30 Dec 2008 23:05:50 +0000 (23:05 +0000)]
only allow sign in front of a number if it's safe

15 years agoallow .123 format numbers
kramm [Tue, 30 Dec 2008 23:05:42 +0000 (23:05 +0000)]
allow .123 format numbers

15 years agoadded string unescaping
kramm [Tue, 30 Dec 2008 23:05:24 +0000 (23:05 +0000)]
added string unescaping

15 years agoadded '*=' token
kramm [Tue, 30 Dec 2008 23:05:06 +0000 (23:05 +0000)]
added '*=' token

15 years agofixed multiline comments
kramm [Tue, 30 Dec 2008 23:04:58 +0000 (23:04 +0000)]
fixed multiline comments

15 years agoadded T_DOTDOTDOT
kramm [Tue, 30 Dec 2008 23:04:50 +0000 (23:04 +0000)]
added T_DOTDOTDOT

15 years agoremoved token_t type
kramm [Tue, 30 Dec 2008 23:04:38 +0000 (23:04 +0000)]
removed token_t type

15 years agoparams now have a value, too
kramm [Tue, 30 Dec 2008 23:04:30 +0000 (23:04 +0000)]
params now have a value, too

15 years agonew struct 'params'
kramm [Tue, 30 Dec 2008 23:04:22 +0000 (23:04 +0000)]
new struct 'params'

15 years agorun error reporting tests, too
kramm [Tue, 30 Dec 2008 23:04:12 +0000 (23:04 +0000)]
run error reporting tests, too

15 years agoadded slot field to classinfo_t
kramm [Tue, 30 Dec 2008 23:03:37 +0000 (23:03 +0000)]
added slot field to classinfo_t

15 years agoadded flags to memberinfo
kramm [Tue, 30 Dec 2008 23:03:29 +0000 (23:03 +0000)]
added flags to memberinfo

15 years agoadded more member types
kramm [Tue, 30 Dec 2008 23:03:21 +0000 (23:03 +0000)]
added more member types

15 years agorenamed registry_getfunctionclass to memberinfo_getclass
kramm [Tue, 30 Dec 2008 23:02:52 +0000 (23:02 +0000)]
renamed registry_getfunctionclass to memberinfo_getclass

15 years agoclassinfo_t now has a union member for storing subclasses/submembers
kramm [Tue, 30 Dec 2008 23:02:44 +0000 (23:02 +0000)]
classinfo_t now has a union member for storing subclasses/submembers

15 years agoadded class type
kramm [Tue, 30 Dec 2008 23:02:36 +0000 (23:02 +0000)]
added class type

15 years agoclassinfo_register now allocates space for the interface list
kramm [Tue, 30 Dec 2008 23:02:28 +0000 (23:02 +0000)]
classinfo_register now allocates space for the interface list

15 years agorenamed '__funcptr__' to 'call'
kramm [Tue, 30 Dec 2008 23:02:17 +0000 (23:02 +0000)]
renamed '__funcptr__' to 'call'

15 years agonew functions getfunctionclass() isfunctionclass()
kramm [Tue, 30 Dec 2008 23:02:09 +0000 (23:02 +0000)]
new functions getfunctionclass() isfunctionclass()

15 years agoadded ACCESS_PUBLIC as synonym to ACCESS_PACKAGE
kramm [Tue, 30 Dec 2008 23:01:50 +0000 (23:01 +0000)]
added ACCESS_PUBLIC as synonym to ACCESS_PACKAGE

15 years agofixed a bad alloc
kramm [Tue, 30 Dec 2008 23:01:39 +0000 (23:01 +0000)]
fixed a bad alloc

15 years agothe string pool now stores string_t* entries
kramm [Tue, 30 Dec 2008 23:01:30 +0000 (23:01 +0000)]
the string pool now stores string_t* entries

15 years agosmall print refinement
kramm [Tue, 30 Dec 2008 23:01:21 +0000 (23:01 +0000)]
small print refinement

15 years agosmall bugfixes
kramm [Tue, 30 Dec 2008 23:01:08 +0000 (23:01 +0000)]
small bugfixes

15 years agoadded super() implementation, state is now split up into class, method and import...
kramm [Tue, 30 Dec 2008 23:00:57 +0000 (23:00 +0000)]
added super() implementation, state is now split up into class, method and import state

15 years agoadded typeof, void expressions
kramm [Tue, 30 Dec 2008 23:00:46 +0000 (23:00 +0000)]
added typeof, void expressions

15 years agoimplemented missing arithmetric operations
kramm [Tue, 30 Dec 2008 23:00:36 +0000 (23:00 +0000)]
implemented missing arithmetric operations

15 years agodo precedence by the book
kramm [Tue, 30 Dec 2008 23:00:24 +0000 (23:00 +0000)]
do precedence by the book

15 years agofixed bug in creation of dynamic classes
kramm [Tue, 30 Dec 2008 23:00:07 +0000 (23:00 +0000)]
fixed bug in creation of dynamic classes

15 years agofixed segfault during late binding
kramm [Tue, 30 Dec 2008 22:59:57 +0000 (22:59 +0000)]
fixed segfault during late binding

15 years agodon't reference instance variables with getslot
kramm [Tue, 30 Dec 2008 22:59:47 +0000 (22:59 +0000)]
don't reference instance variables with getslot

15 years agonew function find_class(), used by NEW and class lookup
kramm [Tue, 30 Dec 2008 22:59:37 +0000 (22:59 +0000)]
new function find_class(), used by NEW and class lookup

15 years agosimplified new() for local classes
kramm [Tue, 30 Dec 2008 22:59:27 +0000 (22:59 +0000)]
simplified new() for local classes

15 years agoadded support for "Class.member" syntax
kramm [Tue, 30 Dec 2008 22:59:16 +0000 (22:59 +0000)]
added support for "Class.member" syntax

15 years agoallow a static function to access static slots directly
kramm [Tue, 30 Dec 2008 22:59:06 +0000 (22:59 +0000)]
allow a static function to access static slots directly

15 years agoadded access level modifiers support, modified property lookup to cope with it
kramm [Tue, 30 Dec 2008 22:58:56 +0000 (22:58 +0000)]
added access level modifiers support, modified property lookup to cope with it

15 years agomake sure that we don't do a rogue getproperty anywhere, to not confuse getter functions
kramm [Tue, 30 Dec 2008 22:58:46 +0000 (22:58 +0000)]
make sure that we don't do a rogue getproperty anywhere, to not confuse getter functions

15 years agofixed getter/setter handling, refined casting
kramm [Tue, 30 Dec 2008 22:58:36 +0000 (22:58 +0000)]
fixed getter/setter handling, refined casting

15 years agoimplemented interfaces
kramm [Tue, 30 Dec 2008 22:58:26 +0000 (22:58 +0000)]
implemented interfaces

15 years agostrings are now encoded as string_t
kramm [Tue, 30 Dec 2008 22:58:16 +0000 (22:58 +0000)]
strings are now encoded as string_t

15 years agoadded 'a op= b' implementation
kramm [Tue, 30 Dec 2008 22:58:06 +0000 (22:58 +0000)]
added 'a op= b' implementation

15 years agofixed variable killing on scope end
kramm [Tue, 30 Dec 2008 22:57:56 +0000 (22:57 +0000)]
fixed variable killing on scope end

15 years agosimplified local variable reassignment, added default param values
kramm [Tue, 30 Dec 2008 22:57:46 +0000 (22:57 +0000)]
simplified local variable reassignment, added default param values

15 years agobugfixes, closure support
kramm [Tue, 30 Dec 2008 22:57:36 +0000 (22:57 +0000)]
bugfixes, closure support

15 years agooptimized assignment code, added varargs
kramm [Tue, 30 Dec 2008 22:57:26 +0000 (22:57 +0000)]
optimized assignment code, added varargs

15 years agomade temporary variable non-colliding
kramm [Tue, 30 Dec 2008 22:57:16 +0000 (22:57 +0000)]
made temporary variable non-colliding

15 years agoadded slots to class
kramm [Tue, 30 Dec 2008 22:56:39 +0000 (22:56 +0000)]
added slots to class

15 years agoadded access codes to member flags
kramm [Tue, 30 Dec 2008 22:56:31 +0000 (22:56 +0000)]
added access codes to member flags

15 years agotoken2string now takes 2 parameters
kramm [Tue, 30 Dec 2008 22:56:01 +0000 (22:56 +0000)]
token2string now takes 2 parameters

15 years agofixed code_cutlast if there's only one opcode
kramm [Tue, 30 Dec 2008 22:55:30 +0000 (22:55 +0000)]
fixed code_cutlast if there's only one opcode

15 years agostrings are now stored as string_t*
kramm [Tue, 30 Dec 2008 22:55:14 +0000 (22:55 +0000)]
strings are now stored as string_t*

15 years agoreactivated code_dup
kramm [Tue, 30 Dec 2008 22:55:03 +0000 (22:55 +0000)]
reactivated code_dup

15 years agoadded function cut_last_push()
kramm [Tue, 30 Dec 2008 22:54:54 +0000 (22:54 +0000)]
added function cut_last_push()

15 years agoaddeds slot field to classinfo_t
kramm [Tue, 30 Dec 2008 22:54:42 +0000 (22:54 +0000)]
addeds slot field to classinfo_t

15 years agoadded access levels to flags
kramm [Tue, 30 Dec 2008 22:54:18 +0000 (22:54 +0000)]
added access levels to flags

15 years agoadded flags
kramm [Tue, 30 Dec 2008 22:53:54 +0000 (22:53 +0000)]
added flags

15 years agoremoved varargs syntax from method constructors
kramm [Tue, 30 Dec 2008 22:53:08 +0000 (22:53 +0000)]
removed varargs syntax from method constructors

15 years agomade method construction functions return abc_method instead of abc_method_body
kramm [Tue, 30 Dec 2008 22:52:58 +0000 (22:52 +0000)]
made method construction functions return abc_method instead of abc_method_body