×

Bytecode program interpreter apparatus and method with pre-verification of data type restrictions and object initialization

  • US 5,999,731 A
  • Filed: 03/24/1998
  • Issued: 12/07/1999
  • Est. Priority Date: 12/20/1994
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of operating a computer system, the steps of the method comprising:

  • (A) accessing a program in a memory, the program including a sequence of instructions, where each of a subset of the instructions each represents an operation on data of a specific data type;

    each instruction in the subset having associated data type restrictions on the data type of data to be manipulated by that instruction;

    (B) storing, for each instruction in the program, a data type snapshot, the data type snapshot including data type information concerning data types associated with data stored in an operand stack and registers by the program immediately prior to execution of the corresponding instruction;

    (C) emulating operation of a selected instruction in the program by;

    (C1) analyzing stack and register usage by the selected instruction so as to generate a current data type usage map for the operand stack and registers, (C2) determining all successor instructions to the selected instruction, (C3) merging the current data type usage map with the data type snapshot of the determined successor instructions, and (C4) marking for further analysis each of the determined successor instructions whose data type snapshot is modified by said merging;

    (D) emulating operation of each of the instructions marked for further analysis by performing step C on each of those marked instructions and unmarking each emulated instruction; and

    (E) repeating step D until there are no marked instructions;

    said step C1 including determining when the stack and register usage by the instruction would violate the data type restrictions, if any, for that instruction and generating a fault signal when execution of the instruction would violate the data type restrictions.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×