发明授权
US08244775B1 Using map objects to access object properties in a dynamic object-oriented programming language 有权
使用地图对象以动态面向对象编程语言访问对象属性

Using map objects to access object properties in a dynamic object-oriented programming language
摘要:
One embodiment of the present invention provides a system that uses map objects to access object properties for a program written in a dynamic object-oriented programming language, thereby facilitating property access for languages that allow additional properties to be defined for objects at runtime. During operation, the system receives an object of an object type. This object is associated with a memory region and a given map object (from a set of map objects associated with the given object type) that describes how properties of the object are mapped to fields in the memory region. When receiving a request to access a property of the object, the system determines whether the given map object includes a field mapping for the property. If so, the system accesses a field in the memory region associated with the property using the field mapping.
信息查询
0/0