# US 2010/0161910 A1 · Stored value accessors in shared memory regions

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0161910 A1
- Document ID: US20100161910A1
- Status: Published application
- Kind: A1
- Application number: 12/338,685
- Filed: 2008-12-18
- Published: 2010-06-24
- Earliest claimed: 2008-12-18
- Assignees: Microsoft Corporation
- Inventors: Jonathon Michael Stall; Gregg Bernard Miskelly; Richard Michael Byers; Eric H. Feiveson
- Web page: https://patentgrep.com/patent/US20100161910A1

## CPC

- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Instruction sets in computing environments may execute within one of several domains, such as a natively executing domain, an interpretively executing domain, and a debugging executing domain. These domains may store values in a shared region of memory in different ways. It may be difficult to perform operations on such values, particularly if a domain that generated a particular value cannot be identified or no longer exist, which may obstruct shared accessing of values and evaluative tasks such as stack walks. Instead, accessors may be associated with a stored value that perform various operations (such as low-level assembly instructions like Load, Store, and Compare) according to the standards of the value-generating domain, and domains may be configured to operate on the value through the accessors. This configuration may promote consistent accessing of values without having to identify or consult the value-generating domain or reconfiguring the instruction sets.

## Claims

### Claim 1

A method of storing values generated by at least two domains in a region of a memory of a computer having a processor, the method comprising:
storing in the memory instructions configured to:
upon receiving a request to store a value generated by a domain:
store the value in the region of the memory, and
associate with the value at least one accessor associated with the domain and configured to operate on the value stored in the region of the memory; and
upon receiving a request to apply an operation to the value:
retrieve from the memory an accessor associated with the value and capable of applying the operation to the value in the region of the memory; and
invoke the accessor; and
executing the instructions on the processor.

### Claim 2 (depends on 1)

The method of claim 1, respective accessors comprising:
a store accessor configured to store the value in the region of the memory;
a load accessor configured to load the value from the region of the memory;
a mathematical accessor configured to apply a mathematical operation to the value;
a Boolean accessor configured to apply a Boolean operation to the value; or
a comparison accessor configured to apply a comparison operation to the value.

### Claim 3 (depends on 1)

The method of claim 1,
the memory storing:
a second value associated with a second domain and representing a reference to the value, and
at least one second accessor associated with the second value and configured to operate on the value.

### Claim 4 (depends on 3)

The method of claim 3, the at least one second accessor selected from a group comprising:
a memory referencing accessor configured to store the second value as a reference to the value, and
a memory dereferencing accessor configured to dereference the second value by:
retrieving from the memory a load accessor associated with the value, and
invoking the load accessor to retrieve the value.

### Claim 5 (depends on 1)

The method of claim 1:
at least one operation applied to a value within a domain configured to induce at least one effect when executed within the domain, and
at least one accessor configured to perform the operation within the domain without inducing the at least one effect when executed within the domain.

### Claim 6 (depends on 1)

The method of claim 1, associating the value with the at least one accessor associated with the domain comprising:
receiving the at least one accessor from the domain;
storing the at least one accessor in the region; and
associating the at least one accessor with the value.

### Claim 7 (depends on 1)

The method of claim 1, the instructions comprising: upon receiving the request to store the value generated by the domain, store in the region at least one descriptor of the value.

### Claim 8 (depends on 1)

The method of claim 1:
at least one domain comprising a local domain configured to store at least one local value in a local region of the memory associated with the local domain, and at least one value in the region of memory referencing the local value in the local region associated with the local domain; and
the local domain associated with at least one accessor configured to operate on the local value stored with the at least one accessor in the local region of the memory.

### Claim 9 (depends on 8)

The method of claim 8:
the memory comprising:
an instruction set configured to store the values in the region of the memory and associated with a domain, and
an interpreter configured to execute the instruction set and associated with the local domain.

### Claim 10 (depends on 9)

The method of claim 9:
at least one value associated with the domain of the instruction set comprising a static value, and
the interpreter configured to manage lifetime of the static value.

### Claim 11 (depends on 1)

The method of claim 1, the at least two domains comprising:
a first domain associated with values created in a first language, and
a second domain associated with values created in a second language.

### Claim 12 (depends on 1)

The method of claim 1, at least one accessor configured to convert the value to a target format upon:
storing the value in the memory, or
loading the value from the memory.

### Claim 13

A system configured to store values generated by at least two domains in a region of a memory of a computer having a processor, the system comprising:
a value storing component configured, upon receiving a request to store a value generated by a domain, to:
store the value in the region of the memory, and
associate with the value at least one accessor associated with the domain and configured to operate on the value stored in the region of the memory; and
a value operating component configured, upon receiving a request to apply an operation to the value, to:
retrieve from the memory an accessor associated with the value and capable of applying the operation to the value in the region of the memory; and
invoke the accessor.

### Claim 14 (depends on 13)

The system of claim 13, at least one accessor comprising:
a store accessor configured to store the value in the region of the memory;
a load accessor configured to load the value from the region of the memory;
a mathematical accessor configured to apply a mathematical operation to the value;
a Boolean accessor configured to apply a Boolean operation to the value; or
a comparison accessor configured to apply a comparison operation to the value.

### Claim 15 (depends on 13)

The system of claim 13:
the memory storing:
a second value associated with a second domain and representing a reference to the value, and
at least one second accessor associated with the second value and configured to operate on the value.

### Claim 16 (depends on 13)

The system of claim 13, the value storing component configured to associate the value with the at least one accessor associated with the domain by:
receiving the at least one accessor from the domain;
storing the at least one accessor in the region; and
associating the at least one accessor with the value.

### Claim 17 (depends on 13)

The system of claim 13:
at least one domain comprising a local domain configured to store at least one local value in a local region of the memory associated with the local domain, and at least one value in the region of memory referencing the local value in the local region associated with the local domain; and
the local domain associated with at least one accessor configured to operate on the local value stored with the at least one accessor in the local region of the memory.

### Claim 18 (depends on 17)

The system of claim 17:
the memory comprising:
an instruction set configured to store the values in the region of the memory and associated with a domain, and
an interpreter configured to execute the instruction set and associated with the local domain.

### Claim 19 (depends on 18)

The system of claim 18:
at least one value associated with the domain of the instruction set comprising a static value, and
the interpreter configured to manage lifetime of the static value.

### Claim 20

A tangible computer-readable medium comprising instructions configured, when stored in a memory of a computer and executed on a processor of the computer, to perform a method of storing values generated by at least two domains in a region of the memory, the method comprising:
upon receiving a request to store a value generated by a domain:
storing the value in the region of the memory, and
associate with the value at least one accessor associated with the domain and configured to operate on the value stored in the region of the memory; and
upon receiving a request to apply an operation to the value:
retrieving from the memory an accessor associated with the value and capable of applying the operation to the value in the region of the memory; and
invoking the accessor.
