~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/nbody-java/java_lang_IndexOutOfBoundsException.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-06-11 15:45:24 UTC
  • mfrom: (1.2.1) (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130611154524-rppb3w6tixlegv4n
Tags: 1.4.7~20130611~a1eb425-1
* New snapshot release
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "xmlvm.h"
 
2
#include "java_lang_String.h"
 
3
 
 
4
#include "java_lang_IndexOutOfBoundsException.h"
 
5
 
 
6
#define XMLVM_CURRENT_CLASS_NAME IndexOutOfBoundsException
 
7
#define XMLVM_CURRENT_PKG_CLASS_NAME java_lang_IndexOutOfBoundsException
 
8
 
 
9
__TIB_DEFINITION_java_lang_IndexOutOfBoundsException __TIB_java_lang_IndexOutOfBoundsException = {
 
10
    0, // classInitializationBegan
 
11
    0, // classInitialized
 
12
    -1, // initializerThreadId
 
13
    __INIT_java_lang_IndexOutOfBoundsException, // classInitializer
 
14
    "java.lang.IndexOutOfBoundsException", // className
 
15
    "java.lang", // package
 
16
    JAVA_NULL, // enclosingClassName
 
17
    JAVA_NULL, // enclosingMethodName
 
18
    JAVA_NULL, // signature
 
19
    (__TIB_DEFINITION_TEMPLATE*) &__TIB_java_lang_RuntimeException, // extends
 
20
    sizeof(java_lang_IndexOutOfBoundsException), // sizeInstance
 
21
    XMLVM_TYPE_CLASS};
 
22
 
 
23
JAVA_OBJECT __CLASS_java_lang_IndexOutOfBoundsException;
 
24
JAVA_OBJECT __CLASS_java_lang_IndexOutOfBoundsException_1ARRAY;
 
25
JAVA_OBJECT __CLASS_java_lang_IndexOutOfBoundsException_2ARRAY;
 
26
JAVA_OBJECT __CLASS_java_lang_IndexOutOfBoundsException_3ARRAY;
 
27
//XMLVM_BEGIN_IMPLEMENTATION
 
28
//XMLVM_END_IMPLEMENTATION
 
29
 
 
30
static JAVA_LONG _STATIC_java_lang_IndexOutOfBoundsException_serialVersionUID;
 
31
 
 
32
#include "xmlvm-reflection.h"
 
33
 
 
34
static XMLVM_FIELD_REFLECTION_DATA __field_reflection_data[] = {
 
35
};
 
36
 
 
37
static XMLVM_CONSTRUCTOR_REFLECTION_DATA __constructor_reflection_data[] = {
 
38
};
 
39
 
 
40
static JAVA_OBJECT constructor_dispatcher(JAVA_OBJECT constructor, JAVA_OBJECT arguments)
 
41
{
 
42
    XMLVM_NOT_IMPLEMENTED();
 
43
}
 
44
 
 
45
static XMLVM_METHOD_REFLECTION_DATA __method_reflection_data[] = {
 
46
};
 
47
 
 
48
static JAVA_OBJECT method_dispatcher(JAVA_OBJECT method, JAVA_OBJECT receiver, JAVA_OBJECT arguments)
 
49
{
 
50
    XMLVM_NOT_IMPLEMENTED();
 
51
}
 
52
 
 
53
void __INIT_java_lang_IndexOutOfBoundsException()
 
54
{
 
55
    staticInitializerLock(&__TIB_java_lang_IndexOutOfBoundsException);
 
56
 
 
57
    // While the static initializer mutex is locked, locally store the value of
 
58
    // whether class initialization began or not
 
59
    int initBegan = __TIB_java_lang_IndexOutOfBoundsException.classInitializationBegan;
 
60
 
 
61
    // Whether or not class initialization had already began, it has begun now
 
62
    __TIB_java_lang_IndexOutOfBoundsException.classInitializationBegan = 1;
 
63
 
 
64
    staticInitializerUnlock(&__TIB_java_lang_IndexOutOfBoundsException);
 
65
 
 
66
    JAVA_LONG curThreadId = (JAVA_LONG)pthread_self();
 
67
    if (initBegan) {
 
68
        if (__TIB_java_lang_IndexOutOfBoundsException.initializerThreadId != curThreadId) {
 
69
            // Busy wait until the other thread finishes initializing this class
 
70
            while (!__TIB_java_lang_IndexOutOfBoundsException.classInitialized) {
 
71
                // do nothing
 
72
            }
 
73
        }
 
74
    } else {
 
75
        __TIB_java_lang_IndexOutOfBoundsException.initializerThreadId = curThreadId;
 
76
        XMLVM_CLASS_USED("java.lang.IndexOutOfBoundsException")
 
77
        __INIT_IMPL_java_lang_IndexOutOfBoundsException();
 
78
    }
 
79
}
 
80
 
 
81
void __INIT_IMPL_java_lang_IndexOutOfBoundsException()
 
82
{
 
83
    // Initialize base class if necessary
 
84
    XMLVM_CLASS_INIT(java_lang_RuntimeException)
 
85
    __TIB_java_lang_IndexOutOfBoundsException.newInstanceFunc = __NEW_INSTANCE_java_lang_IndexOutOfBoundsException;
 
86
    // Copy vtable from base class
 
87
    XMLVM_MEMCPY(__TIB_java_lang_IndexOutOfBoundsException.vtable, __TIB_java_lang_RuntimeException.vtable, sizeof(__TIB_java_lang_RuntimeException.vtable));
 
88
    // Initialize vtable for this class
 
89
    // Initialize interface information
 
90
    __TIB_java_lang_IndexOutOfBoundsException.numImplementedInterfaces = 1;
 
91
    __TIB_java_lang_IndexOutOfBoundsException.implementedInterfaces = (__TIB_DEFINITION_TEMPLATE* (*)[1]) XMLVM_MALLOC(sizeof(__TIB_DEFINITION_TEMPLATE*) * 1);
 
92
 
 
93
    // Initialize interfaces if necessary and assign tib to implementedInterfaces
 
94
 
 
95
    XMLVM_CLASS_INIT(java_io_Serializable)
 
96
 
 
97
    __TIB_java_lang_IndexOutOfBoundsException.implementedInterfaces[0][0] = &__TIB_java_io_Serializable;
 
98
    // Initialize itable for this class
 
99
    __TIB_java_lang_IndexOutOfBoundsException.itableBegin = &__TIB_java_lang_IndexOutOfBoundsException.itable[0];
 
100
 
 
101
    _STATIC_java_lang_IndexOutOfBoundsException_serialVersionUID = 234122996006267687;
 
102
 
 
103
    __TIB_java_lang_IndexOutOfBoundsException.declaredFields = &__field_reflection_data[0];
 
104
    __TIB_java_lang_IndexOutOfBoundsException.numDeclaredFields = sizeof(__field_reflection_data) / sizeof(XMLVM_FIELD_REFLECTION_DATA);
 
105
    __TIB_java_lang_IndexOutOfBoundsException.constructorDispatcherFunc = constructor_dispatcher;
 
106
    __TIB_java_lang_IndexOutOfBoundsException.declaredConstructors = &__constructor_reflection_data[0];
 
107
    __TIB_java_lang_IndexOutOfBoundsException.numDeclaredConstructors = sizeof(__constructor_reflection_data) / sizeof(XMLVM_CONSTRUCTOR_REFLECTION_DATA);
 
108
    __TIB_java_lang_IndexOutOfBoundsException.methodDispatcherFunc = method_dispatcher;
 
109
    __TIB_java_lang_IndexOutOfBoundsException.declaredMethods = &__method_reflection_data[0];
 
110
    __TIB_java_lang_IndexOutOfBoundsException.numDeclaredMethods = sizeof(__method_reflection_data) / sizeof(XMLVM_METHOD_REFLECTION_DATA);
 
111
    __CLASS_java_lang_IndexOutOfBoundsException = XMLVM_CREATE_CLASS_OBJECT(&__TIB_java_lang_IndexOutOfBoundsException);
 
112
    __TIB_java_lang_IndexOutOfBoundsException.clazz = __CLASS_java_lang_IndexOutOfBoundsException;
 
113
    __TIB_java_lang_IndexOutOfBoundsException.baseType = JAVA_NULL;
 
114
    __CLASS_java_lang_IndexOutOfBoundsException_1ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_java_lang_IndexOutOfBoundsException);
 
115
    __CLASS_java_lang_IndexOutOfBoundsException_2ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_java_lang_IndexOutOfBoundsException_1ARRAY);
 
116
    __CLASS_java_lang_IndexOutOfBoundsException_3ARRAY = XMLVM_CREATE_ARRAY_CLASS_OBJECT(__CLASS_java_lang_IndexOutOfBoundsException_2ARRAY);
 
117
    //XMLVM_BEGIN_WRAPPER[__INIT_java_lang_IndexOutOfBoundsException]
 
118
    //XMLVM_END_WRAPPER
 
119
 
 
120
    __TIB_java_lang_IndexOutOfBoundsException.classInitialized = 1;
 
121
}
 
122
 
 
123
void __DELETE_java_lang_IndexOutOfBoundsException(void* me, void* client_data)
 
124
{
 
125
    //XMLVM_BEGIN_WRAPPER[__DELETE_java_lang_IndexOutOfBoundsException]
 
126
    //XMLVM_END_WRAPPER
 
127
}
 
128
 
 
129
void __INIT_INSTANCE_MEMBERS_java_lang_IndexOutOfBoundsException(JAVA_OBJECT me, int derivedClassWillRegisterFinalizer)
 
130
{
 
131
    __INIT_INSTANCE_MEMBERS_java_lang_RuntimeException(me, 0 || derivedClassWillRegisterFinalizer);
 
132
    //XMLVM_BEGIN_WRAPPER[__INIT_INSTANCE_MEMBERS_java_lang_IndexOutOfBoundsException]
 
133
    //XMLVM_END_WRAPPER
 
134
}
 
135
 
 
136
JAVA_OBJECT __NEW_java_lang_IndexOutOfBoundsException()
 
137
{    XMLVM_CLASS_INIT(java_lang_IndexOutOfBoundsException)
 
138
java_lang_IndexOutOfBoundsException* me = (java_lang_IndexOutOfBoundsException*) XMLVM_MALLOC(sizeof(java_lang_IndexOutOfBoundsException));
 
139
    me->tib = &__TIB_java_lang_IndexOutOfBoundsException;
 
140
    __INIT_INSTANCE_MEMBERS_java_lang_IndexOutOfBoundsException(me, 0);
 
141
    //XMLVM_BEGIN_WRAPPER[__NEW_java_lang_IndexOutOfBoundsException]
 
142
    //XMLVM_END_WRAPPER
 
143
    return me;
 
144
}
 
145
 
 
146
JAVA_OBJECT __NEW_INSTANCE_java_lang_IndexOutOfBoundsException()
 
147
{
 
148
    JAVA_OBJECT me = JAVA_NULL;
 
149
    me = __NEW_java_lang_IndexOutOfBoundsException();
 
150
    java_lang_IndexOutOfBoundsException___INIT___(me);
 
151
    return me;
 
152
}
 
153
 
 
154
JAVA_LONG java_lang_IndexOutOfBoundsException_GET_serialVersionUID()
 
155
{
 
156
    XMLVM_CLASS_INIT(java_lang_IndexOutOfBoundsException)
 
157
    return _STATIC_java_lang_IndexOutOfBoundsException_serialVersionUID;
 
158
}
 
159
 
 
160
void java_lang_IndexOutOfBoundsException_PUT_serialVersionUID(JAVA_LONG v)
 
161
{
 
162
    XMLVM_CLASS_INIT(java_lang_IndexOutOfBoundsException)
 
163
_STATIC_java_lang_IndexOutOfBoundsException_serialVersionUID = v;
 
164
}
 
165
 
 
166
void java_lang_IndexOutOfBoundsException___INIT___(JAVA_OBJECT me)
 
167
{
 
168
    //XMLVM_BEGIN_WRAPPER[java_lang_IndexOutOfBoundsException___INIT___]
 
169
    XMLVM_ENTER_METHOD("java.lang.IndexOutOfBoundsException", "<init>", "?")
 
170
    XMLVMElem _r0;
 
171
    _r0.o = me;
 
172
    XMLVM_SOURCE_POSITION("IndexOutOfBoundsException.java", 33)
 
173
    XMLVM_CHECK_NPE(0)
 
174
    java_lang_RuntimeException___INIT___(_r0.o);
 
175
    XMLVM_SOURCE_POSITION("IndexOutOfBoundsException.java", 34)
 
176
    XMLVM_EXIT_METHOD()
 
177
    return;
 
178
    //XMLVM_END_WRAPPER
 
179
}
 
180
 
 
181
void java_lang_IndexOutOfBoundsException___INIT____java_lang_String(JAVA_OBJECT me, JAVA_OBJECT n1)
 
182
{
 
183
    //XMLVM_BEGIN_WRAPPER[java_lang_IndexOutOfBoundsException___INIT____java_lang_String]
 
184
    XMLVM_ENTER_METHOD("java.lang.IndexOutOfBoundsException", "<init>", "?")
 
185
    XMLVMElem _r0;
 
186
    XMLVMElem _r1;
 
187
    _r0.o = me;
 
188
    _r1.o = n1;
 
189
    XMLVM_SOURCE_POSITION("IndexOutOfBoundsException.java", 44)
 
190
    XMLVM_CHECK_NPE(0)
 
191
    java_lang_RuntimeException___INIT____java_lang_String(_r0.o, _r1.o);
 
192
    XMLVM_SOURCE_POSITION("IndexOutOfBoundsException.java", 45)
 
193
    XMLVM_EXIT_METHOD()
 
194
    return;
 
195
    //XMLVM_END_WRAPPER
 
196
}
 
197