Mercurial > hg > truffle
diff src/share/vm/graal/graalVmIds.hpp @ 3634:076542d505cd
Remove the need for a global stub array.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 14 Nov 2011 22:38:54 +0100 |
parents | 136ea96eb7f8 |
children | 50a1d38cd7ac |
line wrap: on
line diff
--- a/src/share/vm/graal/graalVmIds.hpp Mon Nov 14 22:34:14 2011 +0100 +++ b/src/share/vm/graal/graalVmIds.hpp Mon Nov 14 22:38:54 2011 +0100 @@ -31,24 +31,7 @@ class VmIds : public AllStatic { -private: - static GrowableArray<address>* _stubs; - - static oop getObject(jlong id); - public: - // these constants needs to have the same values as the one in HotSpotProxy.java - static const jlong STUB = 0x100000000000000LL; // address - static const jlong METHOD = 0x200000000000000LL; // methodOop - static const jlong CLASS = 0x300000000000000LL; // klassOop - static const jlong CONSTANT_POOL = 0x500000000000000LL; // constantPoolOop - static const jlong CONSTANT = 0x600000000000000LL; // oop - static const jlong TYPE_MASK = 0xf00000000000000LL; - static const jlong DUMMY_CONSTANT = 0x6ffffffffffffffLL; - - // Initializes the VmIds for a compilation, by creating the arrays - static void initializeObjects(); - // Adds a stub address, and returns the corresponding vmId (which is of type STUB) static jlong addStub(address stub);