furnace-avm2 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/bin/furnace-avm2 +1 -2
- data/furnace-avm2.gemspec +1 -2
- data/lib/{avm2.rb → furnace-avm2.rb} +3 -5
- data/lib/furnace-avm2/abc.rb +68 -0
- data/lib/{avm2 → furnace-avm2}/abc/metadata/const_pool_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/exception_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/file.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/instance_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/klass_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/metadata_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/method_body_info.rb +4 -4
- data/lib/{avm2 → furnace-avm2}/abc/metadata/method_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/multiname_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/multiname_kind_genericname.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/multiname_kind_multiname.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/multiname_kind_multinamel.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/multiname_kind_qname.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/multiname_kind_rtqname.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/multiname_kind_rtqnamel.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/namespace_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/ns_set_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/option_detail.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/option_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/record_with_traits.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/script_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/trait_class.rb +2 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/trait_function.rb +2 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/trait_info.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/trait_method.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/metadata/trait_slot.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_add.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_add_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_declocal.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_declocal_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_decrement.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_decrement_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_divide.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_equals.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_greaterequals.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_greaterthan.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_inclocal.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_inclocal_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_increment.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_increment_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_lessequals.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_lessthan.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_modulo.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_multiply.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_multiply_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_negate.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_negate_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_not.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_strictequals.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_subtract.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic/as3_subtract_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/arithmetic_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/bitwise/as3_bitand.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/bitwise/as3_bitnot.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/bitwise/as3_bitor.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/bitwise/as3_bitxor.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/bitwise/as3_lshift.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/bitwise/as3_rshift.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/bitwise/as3_urshift.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/bitwise_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/contextual_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifeq.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_iffalse.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifge.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifgt.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifle.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_iflt.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifne.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifnge.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifngt.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifnle.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifnlt.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifstricteq.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_ifstrictne.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_iftrue.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_jump.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer/as3_lookupswitch.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/control_transfer_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/exception/as3_newcatch.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/exception_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_invocation/as3_call.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_invocation/as3_callproperty.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_invocation/as3_callpropvoid.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_invocation/as3_callsuper.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_invocation/as3_callsupervoid.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_invocation_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_return/as3_returnvalue.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_return/as3_returnvoid.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/function_return_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_astypelate.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_checkfilter.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_dup.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_dxnslate.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_escxattr.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_getglobalscope.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_getlex.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_getscopeobject.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_getslot.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_hasnext.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_hasnext2.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_in.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_instanceof.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_istypelate.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_kill.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_label.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_nextname.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_nextvalue.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_nop.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_pop.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_popscope.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_setslot.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_swap.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_throw.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/generic/as3_typeof.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_getlocal.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_getlocal_0.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_getlocal_1.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_getlocal_2.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_getlocal_3.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_setlocal.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_setlocal_0.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_setlocal_1.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_setlocal_2.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store/as3_setlocal_3.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/load_store_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/object_manipulation/as3_construct.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/object_manipulation/as3_constructsuper.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/object_manipulation/as3_newactivation.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/object_manipulation/as3_newarray.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/object_manipulation/as3_newclass.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/object_manipulation/as3_newfunction.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/object_manipulation/as3_newobject.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/object_manipulation_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_constructprop.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_deleteproperty.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_findproperty.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_findpropstrict.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_getdescendants.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_getproperty.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_getsuper.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_initproperty.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_setproperty.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property/as3_setsuper.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/property_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushbyte.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushdouble.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushfalse.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushint.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushnan.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushnull.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushscope.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushshort.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushstring.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushtrue.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushundefined.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal/as3_pushwith.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/push_literal_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_applytype.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_coerce.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_coerce_a.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_coerce_b.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_coerce_s.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_convert_d.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_convert_i.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_convert_o.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_convert_s.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion/as3_convert_u.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/opcodes/type_conversion_opcode.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/primitives/opcode_sequence.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/abc/primitives/record.rb +2 -2
- data/lib/{avm2 → furnace-avm2}/binary/choice_definition.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/binary/record.rb +3 -3
- data/lib/furnace-avm2/transform.rb +6 -0
- data/lib/{avm2 → furnace-avm2}/transform/ast_build.rb +1 -1
- data/lib/{avm2 → furnace-avm2}/transform/ast_normalize.rb +1 -1
- metadata +185 -186
- data/lib/avm2/abc.rb +0 -68
- data/lib/avm2/transform.rb +0 -6
- data/lib/avm2/version.rb +0 -3
@@ -1,5 +1,5 @@
|
|
1
|
-
module AVM2::ABC
|
2
|
-
class Record < AVM2::Binary::Record
|
1
|
+
module Furnace::AVM2::ABC
|
2
|
+
class Record < Furnace::AVM2::Binary::Record
|
3
3
|
def self.abc_array_of(name, type, options={})
|
4
4
|
field_size, field_array = :"#{name}_count", options.delete(:plural) || :"#{name}s"
|
5
5
|
klass = options.delete(:class)
|