×

Method and apparatus for continuation-passing in a virtual machine

  • US 7,114,153 B2
  • Filed: 09/10/2003
  • Issued: 09/26/2006
  • Est. Priority Date: 09/10/2003
  • Status: Active Grant
First Claim
Patent Images

1. A method for providing continuation passing in a virtual machine having a stack memory, comprising:

  • encountering a context-creating trigger;

    responsive to said encountering of said context-creating trigger;

    constructing a continuation block, said continuation block comprising a block header and a stack fragment, said stack fragment comprising a range of said stack memory between a current stack top address and a current stack base address; and

    pushing said continuation block onto said stack memory;

    encountering an evaluation instruction; and

    responsive to said encountering of said evaluation instruction;

    popping said continuation block from said stack memory;

    pushing said stack fragment portion of said continuation block onto said stack memory;

    setting said current stack top address to a start of said stack fragment of said stack memory; and

    setting said current stack base to a end of said stack fragment of said stack memory.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×