< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/soql/sa.js

Print this page




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *  
  23  */
  24 
  25 // shorter names for SA packages
  26 
  27 
  28 // SA package name abbreviations are kept in 'sapkg' object
  29 // to avoid global namespace pollution
  30 var sapkg = new Object();
  31 





  32 sapkg.hotspot = Packages.sun.jvm.hotspot;
  33 sapkg.asm = sapkg.hotspot.asm;
  34 sapkg.c1 = sapkg.hotspot.c1;
  35 sapkg.code = sapkg.hotspot.code;
  36 sapkg.compiler = sapkg.hotspot.compiler;
  37 
  38 // 'debugger' is a JavaScript keyword, but ES5 relaxes the
  39 // restriction of using keywords as property name
  40 sapkg.debugger = sapkg.hotspot.debugger;
  41 
  42 sapkg.interpreter = sapkg.hotspot.interpreter;
  43 sapkg.jdi = sapkg.hotspot.jdi;
  44 sapkg.memory = sapkg.hotspot.memory;
  45 sapkg.oops = sapkg.hotspot.oops;
  46 sapkg.runtime = sapkg.hotspot.runtime;
  47 sapkg.tools = sapkg.hotspot.tools;
  48 sapkg.types = sapkg.hotspot.types;
  49 sapkg.ui = sapkg.hotspot.ui;
  50 sapkg.utilities = sapkg.hotspot.utilities;
  51 
  52 // SA singletons are kept in 'sa' object
  53 var sa = new Object();
  54 sa.vm = sapkg.runtime.VM.getVM();
  55 sa.dbg = sa.vm.getDebugger();
  56 sa.cdbg = sa.dbg.CDebugger;
  57 sa.heap = sa.vm.universe.heap();
  58 sa.systemDictionary = sa.vm.systemDictionary;
  59 sa.sysDict = sa.systemDictionary;
  60 sa.symbolTable = sa.vm.symbolTable;
  61 sa.symTbl = sa.symbolTable;
  62 sa.threads = sa.vm.threads;
  63 sa.interpreter = sa.vm.interpreter;
  64 sa.typedb = sa.vm.typeDataBase;
  65 sa.codeCache = sa.vm.codeCache;
  66 // 'objHeap' is different from 'heap'!. 
  67 // This is SA's Oop factory and heap-walker
  68 sa.objHeap = sa.vm.objectHeap;
  69 
  70 // few useful global variables
  71 var OS = sa.vm.OS;
  72 var CPU = sa.vm.CPU;
  73 var LP64 = sa.vm.LP64;
  74 var isClient = sa.vm.clientCompiler;




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *  
  23  */
  24 
  25 // shorter names for SA packages
  26 
  27 
  28 // SA package name abbreviations are kept in 'sapkg' object
  29 // to avoid global namespace pollution
  30 var sapkg = new Object();
  31 
  32 var WrapperClass = Java.type('sun.jvm.hotspot.utilities.soql.wrapper.JSObjectClassWrapper');
  33 function SAType(clazz) {
  34   return new WrapperClass(clazz);
  35 }
  36 
  37 sapkg.hotspot = Packages.sun.jvm.hotspot;
  38 sapkg.asm = sapkg.hotspot.asm;
  39 sapkg.c1 = sapkg.hotspot.c1;
  40 sapkg.code = sapkg.hotspot.code;
  41 sapkg.compiler = sapkg.hotspot.compiler;
  42 
  43 // 'debugger' is a JavaScript keyword, but ES5 relaxes the
  44 // restriction of using keywords as property name
  45 sapkg.debugger = sapkg.hotspot.debugger;
  46 
  47 sapkg.interpreter = sapkg.hotspot.interpreter;
  48 sapkg.jdi = sapkg.hotspot.jdi;
  49 sapkg.memory = sapkg.hotspot.memory;
  50 sapkg.oops = sapkg.hotspot.oops;
  51 sapkg.runtime = sapkg.hotspot.runtime;
  52 sapkg.tools = sapkg.hotspot.tools;
  53 sapkg.types = sapkg.hotspot.types;
  54 sapkg.ui = sapkg.hotspot.ui;
  55 sapkg.utilities = sapkg.hotspot.utilities;
  56 
  57 // SA singletons are kept in 'sa' object
  58 var sa = new Object();
  59 sa.vm = SAType(sapkg.runtime.VM).getVM();
  60 sa.dbg = sa.vm.getDebugger();
  61 sa.cdbg = sa.dbg.CDebugger;
  62 sa.heap = sa.vm.universe.heap();
  63 sa.systemDictionary = sa.vm.systemDictionary;
  64 sa.sysDict = sa.systemDictionary;
  65 sa.symbolTable = sa.vm.symbolTable;
  66 sa.symTbl = sa.symbolTable;
  67 sa.threads = sa.vm.threads;
  68 sa.interpreter = sa.vm.interpreter;
  69 sa.typedb = sa.vm.typeDataBase;
  70 sa.codeCache = sa.vm.codeCache;
  71 // 'objHeap' is different from 'heap'!. 
  72 // This is SA's Oop factory and heap-walker
  73 sa.objHeap = sa.vm.objectHeap;
  74 
  75 // few useful global variables
  76 var OS = sa.vm.OS;
  77 var CPU = sa.vm.CPU;
  78 var LP64 = sa.vm.LP64;
  79 var isClient = sa.vm.clientCompiler;


< prev index next >