×

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

  • US 20030135844A1
  • Filed: 11/05/2002
  • Published: 07/17/2003
  • Est. Priority Date: 12/20/1994
  • Status: Active Grant
First Claim
Patent Images

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

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

    said each instruction having associated data type restrictions on the data type of data to be manipulated by said each instruction;

    (B) prior to execution of said program, preprocessing said program by determining whether execution of any instruction in said program would violate said data type restrictions for that instruction and generating a program fault signal when execution of any instruction in said program would violate the data type restrictions for that instruction;

    said preprocessing step including;

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

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

    (B2A) analyzing stack and register usage by said selected instruction so as to generate a current data type usage map for said operand stack and registers, (B2B) determining all successor instructions to said selected instruction, (B2C) merging the current data type usage map with the data type snapshot of said determined successor instructions, and (B2D) marking for further analysis each of said determined successor instruction'"'"'s whose data type snapshot is modified by said merging;

    (B3) emulating operation of each of said instructions marked for further analysis by performing step B2 on each of those marked instructions and unmarking each said emulated instruction; and

    (B4) repeating step B3 until there are no marked instructions;

    said step B2A including determining when said stack and register usage by said instruction would violate said data type restrictions for that instruction and generating a program fault signal when execution of said instruction program would violate said data type restrictions.

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