1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * This source file is part of SableVM.                            *
3  *                                                                 *
4  * See the file "LICENSE" for the copyright information and for    *
5  * the terms and conditions for copying, distribution and          *
6  * modification of this source file.                               *
7  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8 
9 #ifndef SVM_NEW_INSTANCE_H
10 #define SVM_NEW_INSTANCE_H
11 
12 /*
13 ----------------------------------------------------------------------
14 _svmh_new_array_instance
15 ----------------------------------------------------------------------
16 */
17 
18 #define _svmm_new_array_instance(env, array_info, size, instance) \
19 _svmh_new_array_instance(env, array_info, size, &instance)
20 
21 svm_static jint
22 _svmh_new_array_instance (_svmt_JNIEnv *env, _svmt_array_info *array_info,
23 			  jint size, _svmt_array_instance **pinstance);
24 
25 /*
26 ----------------------------------------------------------------------
27 _svmh_new_object_instance
28 ----------------------------------------------------------------------
29 */
30 
31 #define _svmm_new_object_instance(env, class_info, instance) \
32 _svmh_new_object_instance(env, class_info, &instance)
33 
34 svm_static jint
35 _svmh_new_object_instance (_svmt_JNIEnv *env, _svmt_class_info *class_info,
36 			   _svmt_object_instance **pinstance);
37 
38 /*
39 ----------------------------------------------------------------------
40 _svmm_multianewarray
41 ----------------------------------------------------------------------
42 */
43 
44 #define _svmm_multianewarray(env, array_info, dimensions, counts, instance) \
45 _svmh_multianewarray (env, array_info, dimensions, &counts, &instance)
46 
47 svm_static jint
48 _svmh_multianewarray (_svmt_JNIEnv *env, _svmt_array_info *array_info,
49 		      jint dimensions, _svmt_stack_value counts[],
50 		      _svmt_array_instance **pinstance);
51 
52 #endif /* NOT SVM_NEW_INSTANCE_H */
53