[llvm-commits] [vmkit] r51041 - in /vmkit/trunk/lib/JnJVM/VMCore: JavaPrimitive.cpp JavaPrimitive.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue May 13 07:30:34 PDT 2008
Author: geoffray
Date: Tue May 13 09:30:34 2008
New Revision: 51041
URL: http://llvm.org/viewvc/llvm-project?rev=51041&view=rev
Log:
Remove unused files.
Removed:
vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.cpp
vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.h
Removed: vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.cpp?rev=51040&view=auto
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.cpp (removed)
@@ -1,62 +0,0 @@
-//===--- JavaPrimitive.cpp - Native functions for primitive values --------===//
-//
-// JnJVM
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <vector>
-
-#include <string.h>
-
-#include "JavaClass.h"
-#include "JavaPrimitive.h"
-#include "JavaTypes.h"
-
-using namespace jnjvm;
-
-void JavaPrimitive::print(mvm::PrintBuffer* buf) {
- buf->write("Primitive");
-}
-
-JavaPrimitive* JavaPrimitive::byteIdToPrimitive(char id) {
- for (uint32 i = 0; i < JavaPrimitive::primitives.size(); ++i) {
- JavaPrimitive* cur = JavaPrimitive::primitives[i];
- if (cur->funcs->byteId == id) return cur;
- }
- return 0;
-}
-
-JavaPrimitive* JavaPrimitive::asciizToPrimitive(char* asciiz) {
- for (uint32 i = 0; i < JavaPrimitive::primitives.size(); ++i) {
- JavaPrimitive* cur = JavaPrimitive::primitives[i];
- if (!(strcmp(asciiz, cur->funcs->asciizName))) return cur;
- }
- return 0;
-}
-
-JavaPrimitive* JavaPrimitive::bogusClassToPrimitive(CommonClass* cl) {
- for (uint32 i = 0; i < JavaPrimitive::primitives.size(); ++i) {
- JavaPrimitive* cur = JavaPrimitive::primitives[i];
- if (cur->classType == cl) return cur;
- }
- return 0;
-}
-
-JavaPrimitive* JavaPrimitive::classToPrimitive(CommonClass* cl) {
- for (uint32 i = 0; i < JavaPrimitive::primitives.size(); ++i) {
- JavaPrimitive* cur = JavaPrimitive::primitives[i];
- if (cur->className == cl->name) return cur;
- }
- return 0;
-}
-
-JavaPrimitive* JavaPrimitive::funcsToPrimitive(AssessorDesc* func) {
- for (uint32 i = 0; i < JavaPrimitive::primitives.size(); ++i) {
- JavaPrimitive* cur = JavaPrimitive::primitives[i];
- if (cur->funcs == func) return cur;
- }
- return 0;
-}
Removed: vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.h?rev=51040&view=auto
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.h (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaPrimitive.h (removed)
@@ -1,51 +0,0 @@
-//===--- JavaPrimitive.h - Native functions for primitive values ----------===//
-//
-// JnJVM
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef JNJVM_JAVA_PRIMITIVE_H
-#define JNJVM_JAVA_PRIMITIVE_H
-
-#include "llvm/Function.h"
-
-#include "mvm/Object.h"
-
-#include "types.h"
-
-namespace jnjvm {
-
-class AssessorDesc;
-class CommonClass;
-class UTF8;
-
-class JavaPrimitive : public mvm::Object {
-public:
- static VirtualTable* VT;
- AssessorDesc* funcs;
- const UTF8* className;
- CommonClass* classType;
- const UTF8* symName;
- llvm::Function* initer;
- llvm::Function* getter;
-
- static std::vector<JavaPrimitive*> primitives;
-
- static void initialise();
-
- static JavaPrimitive* byteIdToPrimitive(char id);
- static JavaPrimitive* asciizToPrimitive(char* asciiz);
- static JavaPrimitive* bogusClassToPrimitive(CommonClass* cl);
- static JavaPrimitive* classToPrimitive(CommonClass* cl);
- static JavaPrimitive* funcsToPrimitive(AssessorDesc* funcs);
-
- virtual void print(mvm::PrintBuffer* buf);
- virtual void TRACER;
-};
-
-} // end namespace jnjvm
-
-#endif
More information about the llvm-commits
mailing list