Class: RubyRunJs::OPCODES::OP_CODE
- Inherits:
-
Object
- Object
- RubyRunJs::OPCODES::OP_CODE
- Includes:
- Helper, RubyRunJs::Operation
- Defined in:
- lib/ruby_run_js/opcodes.rb
Direct Known Subclasses
BASE_JUMP, BINARY_OP, CALL, CALL_METHOD, CALL_METHOD_DOT, CALL_METHOD_DOT_NO_ARGS, CALL_METHOD_NO_ARGS, CALL_NO_ARGS, DELETE, DELETE_MEMBER, FOR_IN, LABEL, LOAD, LOAD_ARRAY, LOAD_BOOLEAN, LOAD_FUNCTION, LOAD_MEMBER, LOAD_MEMBER_DOT, LOAD_NONE, LOAD_NULL, LOAD_NUMBER, LOAD_N_TUPLE, LOAD_OBJECT, LOAD_REGEXP, LOAD_STRING, LOAD_THIS, LOAD_UNDEFINED, NEW, NEW_NO_ARGS, NOP, POP, POSTFIX, POSTFIX_MEMBER, POSTFIX_MEMBER_DOT, RETURN, STORE, STORE_MEMBER, STORE_MEMBER_DOT, STORE_MEMBER_DOT_OP, STORE_MEMBER_OP, STORE_OP, THROW, TRY_CATCH_FINALLY, TYPEOF, UNARY_OP, WITH
Instance Method Summary collapse
Methods included from RubyRunJs::Operation
#abstract_equality_op, #abstract_inequality_op, #abstract_relational_comparison, #add_op, #binary_operation, #bit_and_op, #bit_bshift_op, #bit_invert_uop, #bit_lshift_op, #bit_or_op, #bit_rshift_op, #bit_xor_op, #div_op, #float, #greater_eq_op, #greater_op, #in_op, #instanceof_op, #less_eq_op, #less_op, #logical_negation_uop, #minus_uop, #mod_op, #mul_op, #plus_uop, #strict_equality_op, #strict_inequality_op, #sub_op, #typeof_uop, #unary_operation, #void_op
Methods included from Helper
#check_object, #get_member, #get_member_dot, #is_accessor_descriptor, #is_callable, #is_data_descriptor, #is_generic_descriptor, #is_primitive, #make_error, #strict_equality
Methods included from ConversionHelper
#convert_to_js_type, #to_boolean, #to_int32, #to_integer, #to_number, #to_object, #to_primitive, #to_string, #to_uint16, #to_uint32
Instance Method Details
#eval(ctx) ⇒ Object
22 23 |
# File 'lib/ruby_run_js/opcodes.rb', line 22 def eval(ctx) end |
#to_s ⇒ Object
13 14 15 16 |
# File 'lib/ruby_run_js/opcodes.rb', line 13 def to_s vars = instance_variables.map { |v| instance_variable_get(v) } self.class.name.split('::')[2] + '(' + vars.join(',') + ')' end |