[vmkit-commits] [vmkit] r121257 - /vmkit/branches/multi-vm/include/mvm/VirtualMachine.h
Gael Thomas
gael.thomas at lip6.fr
Wed Dec 8 05:58:09 PST 2010
Author: gthomas
Date: Wed Dec 8 07:58:09 2010
New Revision: 121257
URL: http://llvm.org/viewvc/llvm-project?rev=121257&view=rev
Log:
just force the redefinition of vm-specific functions of a virtual machine
Modified:
vmkit/branches/multi-vm/include/mvm/VirtualMachine.h
Modified: vmkit/branches/multi-vm/include/mvm/VirtualMachine.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/branches/multi-vm/include/mvm/VirtualMachine.h?rev=121257&r1=121256&r2=121257&view=diff
==============================================================================
--- vmkit/branches/multi-vm/include/mvm/VirtualMachine.h (original)
+++ vmkit/branches/multi-vm/include/mvm/VirtualMachine.h Wed Dec 8 07:58:09 2010
@@ -69,15 +69,15 @@
/// getReferentPtr - return the referent of a reference
///
- virtual mvm::gc** getReferent(mvm::gc* ref) { abort(); }
+ virtual mvm::gc** getReferent(mvm::gc* ref) = 0;
/// setReferentPtr - set the referent of a reference
///
- virtual void setReferent(mvm::gc* ref, mvm::gc* val) { abort(); }
+ virtual void setReferent(mvm::gc* ref, mvm::gc* val) = 0;
/// enqueueReference - enqueue the reference
///
- virtual bool enqueueReference(mvm::gc* _obj) { abort(); }
+ virtual bool enqueueReference(mvm::gc* _obj) = 0;
/// tracer - Trace this virtual machine's GC-objects.
/// Called once by vm. If you have GC-objects in a thread specific data, redefine the tracer of your VMThreadData.
@@ -86,7 +86,7 @@
/// getObjectSize - Get the size of this object. Used by copying collectors.
///
- virtual size_t getObjectSize(gc* object) { abort(); }
+ virtual size_t getObjectSize(gc* object) = 0;
/// getObjectTypeName - Get the type of this object. Used by the GC for
/// debugging purposes.
@@ -99,10 +99,10 @@
/// runApplication - Run an application. The application name is in
/// the arguments, hence it is the virtual machine's job to parse them.
- virtual void runApplication(int argc, char** argv) { abort(); }
+ virtual void runApplication(int argc, char** argv) = 0;
/// waitForExit - Wait until the virtual machine stops its execution.
- virtual void waitForExit() { abort(); }
+ virtual void waitForExit() = 0;
};
} // end namespace mvm
More information about the vmkit-commits
mailing list