发明授权
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
- 专利标题(中): 使用地图对象以动态面向对象编程语言访问对象属性
-
申请号: US12120067申请日: 2008-05-13
-
公开(公告)号: US08244775B1公开(公告)日: 2012-08-14
- 发明人: Lars Bak , Kasper Verdich Lund
- 申请人: Lars Bak , Kasper Verdich Lund
- 申请人地址: US CA Mountain View
- 专利权人: Google Inc
- 当前专利权人: Google Inc
- 当前专利权人地址: US CA Mountain View
- 代理机构: Sterne, Kessler, Goldstein and Fox P.L.L.C.
- 主分类号: G06F17/30
- IPC分类号: G06F17/30
摘要:
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.
信息查询