Java Doc for StackFrame.java in  » Code-Analyzer » javapathfinder » gov » nasa » jpf » jvm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Code Analyzer » javapathfinder » gov.nasa.jpf.jvm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gov.nasa.jpf.jvm.StackFrame

StackFrame
public class StackFrame implements Constants(Code)
Describes a stack frame. implementation is based on the fact that each Java method has a fixed size operand stack (overrun actually checked by a real VM), and the heuristics that (a) stack / local operations are frequent (b) stack / local sizes are typically small (both < 10) hence a BitSet is not too useful


Field Summary
 boolean[]isLocalRef
    
 boolean[]isOperandRef
    
 int[]locals
     Local variables.
 Object[]operandAttr
     This array can be used to store attributes (e.g.
 int[]operands
    
 intthisRef
    
 inttop
    

Constructor Summary
public  StackFrame(MethodInfo m, boolean isDirect, StackFrame caller)
     Creates a new stack frame for a given method. 'isDirect' specifies if this method was called directly by the VM, i.e.
public  StackFrame(MethodInfo m, boolean isDirect, int objRef)
    

Method Summary
public  voidclearOperandStack()
    
public  Objectclone()
    
public  voiddup()
    
public  voiddup2()
    
public  voiddup2_x1()
    
public  voiddup2_x2()
    
public  voiddup_x1()
    
public  voiddup_x2()
    
public  booleanequals(Object object)
    
public  intgetCalleeThis(MethodInfo mi)
     return the object reference for an instance method to be called (we are still in the caller's frame).
public  intgetCalleeThis(int size)
     return reference of called object in the context of the caller (i.e.
public  ClassInfogetClassInfo()
    
public  intgetLine()
    
public  intgetLocalVariable(int i)
    
public  intgetLocalVariable(String name)
    
public  String[]getLocalVariableNames()
    
public  StringgetLocalVariableType(String name)
    
public  int[]getLocalVariables()
    
public  longgetLongLocalVariable(int i)
    
public  longgetLongLocalVariable(String name)
    
public  MethodInfogetMethodInfo()
    
public  StringgetMethodName()
    
public  ObjectgetOperandAttr()
    
public  ObjectgetOperandAttr(int offset)
    
public  InstructiongetPC()
    
public  StringgetStackTrace()
    
public  intgetThis()
    
public  booleanhasAnyRef()
    
public  voidhash(HashData hd)
    
public  inthashCode()
    
public  booleanisDirectCall()
    
public  booleanisLocalVariableRef(int idx)
    
public  booleanisOperandRef(int idx)
    
public  booleanisOperandRef()
    
public  voidlog(int id)
    
 longlongPeek()
    
 longlongPeek(int n)
    
 longlongPop()
    
 voidlongPush(long v)
    
public  voidmarkThreadRoots(int tid)
     mark all objects reachable from local or operand stack positions containing references.
 intpeek()
    
 intpeek(int n)
    
 voidpop(int n)
    
 intpop()
    
public  voidprintStackContent()
    
public  voidprintStackTrace()
    
 voidpush(int v, boolean ref)
    
public  voidsetLocalVariable(int index, int v, boolean ref)
    
public  voidsetLongLocalVariable(int index, long v)
    
public  voidsetOperandAttr(Object o)
    
public  voidsetPC(Instruction newpc)
    
public  voidswap()
    
public  StringtoString()
    

Field Detail
isLocalRef
boolean[] isLocalRef(Code)



isOperandRef
boolean[] isOperandRef(Code)



locals
int[] locals(Code)
Local variables.



operandAttr
Object[] operandAttr(Code)
This array can be used to store attributes (e.g. variable names) for operands. We don't do anything with this except of preserving it (across dups etc.), so it's pretty much up to the VM listeners what's stored



operands
int[] operands(Code)
the operand stack (untyped, except of ref/no-ref)



thisRef
int thisRef(Code)
since the 'this' local slot apparently can change during execution, we need to keep track of it elsewhere



top
int top(Code)
top index of the operand stack (NOT size)




Constructor Detail
StackFrame
public StackFrame(MethodInfo m, boolean isDirect, StackFrame caller)(Code)
Creates a new stack frame for a given method. 'isDirect' specifies if this method was called directly by the VM, i.e. there is no corresponding INVOKE insn in the underlying stack frame (for instance, that's important to know for handling return values and computing the next pc) 'caller' is the calling stack frame (if any)



StackFrame
public StackFrame(MethodInfo m, boolean isDirect, int objRef)(Code)




Method Detail
clearOperandStack
public void clearOperandStack()(Code)



clone
public Object clone()(Code)



dup
public void dup()(Code)



dup2
public void dup2()(Code)



dup2_x1
public void dup2_x1()(Code)



dup2_x2
public void dup2_x2()(Code)



dup_x1
public void dup_x1()(Code)



dup_x2
public void dup_x2()(Code)



equals
public boolean equals(Object object)(Code)



getCalleeThis
public int getCalleeThis(MethodInfo mi)(Code)
return the object reference for an instance method to be called (we are still in the caller's frame). This only makes sense after all params have been pushed, before the INVOKEx insn is executed



getCalleeThis
public int getCalleeThis(int size)(Code)
return reference of called object in the context of the caller (i.e. we are in the caller frame)



getClassInfo
public ClassInfo getClassInfo()(Code)



getLine
public int getLine()(Code)



getLocalVariable
public int getLocalVariable(int i)(Code)



getLocalVariable
public int getLocalVariable(String name)(Code)



getLocalVariableNames
public String[] getLocalVariableNames()(Code)



getLocalVariableType
public String getLocalVariableType(String name)(Code)



getLocalVariables
public int[] getLocalVariables()(Code)



getLongLocalVariable
public long getLongLocalVariable(int i)(Code)



getLongLocalVariable
public long getLongLocalVariable(String name)(Code)



getMethodInfo
public MethodInfo getMethodInfo()(Code)



getMethodName
public String getMethodName()(Code)



getOperandAttr
public Object getOperandAttr()(Code)



getOperandAttr
public Object getOperandAttr(int offset)(Code)



getPC
public Instruction getPC()(Code)



getStackTrace
public String getStackTrace()(Code)



getThis
public int getThis()(Code)
if this is an instance method, return the reference of the corresponding object (note this only has to be in slot 0 upon entry)



hasAnyRef
public boolean hasAnyRef()(Code)



hash
public void hash(HashData hd)(Code)



hashCode
public int hashCode()(Code)



isDirectCall
public boolean isDirectCall()(Code)



isLocalVariableRef
public boolean isLocalVariableRef(int idx)(Code)



isOperandRef
public boolean isOperandRef(int idx)(Code)



isOperandRef
public boolean isOperandRef()(Code)



log
public void log(int id)(Code)



longPeek
long longPeek()(Code)



longPeek
long longPeek(int n)(Code)



longPop
long longPop()(Code)



longPush
void longPush(long v)(Code)



markThreadRoots
public void markThreadRoots(int tid)(Code)
mark all objects reachable from local or operand stack positions containing references. Done during phase1 marking of threads (the stack is one of the Thread gc roots)



peek
int peek()(Code)



peek
int peek(int n)(Code)



pop
void pop(int n)(Code)



pop
int pop()(Code)



printStackContent
public void printStackContent()(Code)



printStackTrace
public void printStackTrace()(Code)



push
void push(int v, boolean ref)(Code)



setLocalVariable
public void setLocalVariable(int index, int v, boolean ref)(Code)



setLongLocalVariable
public void setLongLocalVariable(int index, long v)(Code)



setOperandAttr
public void setOperandAttr(Object o)(Code)



setPC
public void setPC(Instruction newpc)(Code)



swap
public void swap()(Code)



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.