This commit is contained in:
Christian Thalinger 2015-10-22 19:03:52 +00:00
commit fb687e4ff4
2 changed files with 13 additions and 2 deletions

View File

@ -153,8 +153,13 @@ class PhiResolver: public CompilationResourceObj {
// only the classes below belong in the same file
class LIRGenerator: public InstructionVisitor, public BlockClosure {
// LIRGenerator should never get instatiated on the heap.
private:
void* operator new(size_t size) throw();
void* operator new[](size_t size) throw();
void operator delete(void* p);
void operator delete[](void* p);
Compilation* _compilation;
ciMethod* _method; // method that we are compiling
PhiResolverState _resolver_state;

View File

@ -45,8 +45,14 @@ private:
define_stack(IntegerStack, intArray)
define_array(IntegerMap, IntegerStack*)
class Verification : public _ValueObj /*VALUE_OBJ_CLASS_SPEC*/, public BlockClosure {
class Verification : public BlockClosure {
// RangeCheckEliminator::Verification should never get instatiated on the heap.
private:
void* operator new(size_t size) throw();
void* operator new[](size_t size) throw();
void operator delete(void* p);
void operator delete[](void* p);
IR *_ir;
boolArray _used;
BlockBeginList _current;