Invention Grant
US08601448B2 Representing pointers and boxing in environments using only reference types
有权
在仅使用引用类型的环境中表示指针和拳击
- Patent Title: Representing pointers and boxing in environments using only reference types
- Patent Title (中): 在仅使用引用类型的环境中表示指针和拳击
-
Application No.: US11950945Application Date: 2007-12-05
-
Publication No.: US08601448B2Publication Date: 2013-12-03
- Inventor: Erik Meijer , Jeffrey van Gogh
- Applicant: Erik Meijer , Jeffrey van Gogh
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
An arrangement by which pointers may be represented in a restricted software execution environment that provides access to only reference types but not pointers is realized by modeling both pointers and value type boxing using a set of boxes (i.e., containers) which describe how to retrieve the value associated with the pointer, and emitting code for accessing the set of boxes. A decompiling and recompiling process is utilized in which code arranged to run in an execution environment that supports pointers is scanned to reveal pointer and boxing usage. In one illustrative example, code is responsively emitted to create one or more specific boxes. At runtime in the restricted execution environment, an instance of a box class is created to thus emulate a pointer to the value.
Public/Granted literature
- US20090150422A1 REPRESENTING POINTERS AND BOXING IN ENVIRONMENTS USING ONLY REFERENCE TYPES Public/Granted day:2009-06-11
Information query