harpoon.Analysis.Realtime
Class RealtimeRuntime

java.lang.Object
  extended by harpoon.Backend.Generic.Runtime
      extended by harpoon.Backend.Runtime1.Runtime
          extended by harpoon.Analysis.Realtime.RealtimeRuntime
All Implemented Interfaces:
Serializable

public class RealtimeRuntime
extends Runtime

RealtimeRuntime is a trivial extension of harpoon.Backend.Runtime2.Runtime that allows constants to be tagged with an ImmortalMemory and emits extra const char* data for debugging purposes when Realtime.DEBUG_REF is turned on.

Version:
$Id: RealtimeRuntime.java,v 1.6 2002/10/04 19:50:31 salcianu Exp $
Author:
Wes Beebee <wbeebee@mit.edu>
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class harpoon.Backend.Runtime1.Runtime
Runtime.ExtraClazInfo
 
Nested classes/interfaces inherited from class harpoon.Backend.Generic.Runtime
Runtime.ObjectBuilder, Runtime.TreeBuilder
 
Field Summary
 
Fields inherited from class harpoon.Backend.Runtime1.Runtime
as, cg, ch, frame, main, ob, staticInitializers
 
Fields inherited from class harpoon.Backend.Generic.Runtime
configurationSet
 
Constructor Summary
RealtimeRuntime(Frame frame, AllocationStrategy as, HMethod main, boolean prependUnderscore)
          Create a RealtimeRuntime.
 
Method Summary
 List<HData> classData(HClass hc)
          Tag all classes with javax.realtime.ImmortalMemory java.lang.Object.memoryArea that has a field javax.realtime.ImmortalMemory.constant = true; Also emit data to deal with const char*'s that can be created when Realtime.DEBUG_REF.
protected  TreeBuilder initTreeBuilder()
          Initialize the tree builder with masking turned on if needed.
 String resourcePath(String basename)
          Prefixes a runtime-specific path onto the specific resource name, so that transformations can refer to runtime-specific properties files in a uniform manner.
 
Methods inherited from class harpoon.Backend.Runtime1.Runtime
getExtraClazInfo, getNameMap, getTreeBuilder, initObjectBuilder, nativeTreeCodeFactory, runtimeCallableMethods, setCallGraph, setClassHierarchy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealtimeRuntime

public RealtimeRuntime(Frame frame,
                       AllocationStrategy as,
                       HMethod main,
                       boolean prependUnderscore)
Create a RealtimeRuntime.

Method Detail

classData

public List<HData> classData(HClass hc)
Tag all classes with javax.realtime.ImmortalMemory java.lang.Object.memoryArea that has a field javax.realtime.ImmortalMemory.constant = true; Also emit data to deal with const char*'s that can be created when Realtime.DEBUG_REF.

Overrides:
classData in class Runtime

initTreeBuilder

protected TreeBuilder initTreeBuilder()
Initialize the tree builder with masking turned on if needed.

Overrides:
initTreeBuilder in class Runtime

resourcePath

public String resourcePath(String basename)
Description copied from class: Runtime
Prefixes a runtime-specific path onto the specific resource name, so that transformations can refer to runtime-specific properties files in a uniform manner.

Overrides:
resourcePath in class Runtime