Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
5b0b42ed
Commit
5b0b42ed
authored
Oct 16, 2001
by
Bryce McKinlay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot this file in last commit.
From-SVN: r46284
parent
4c7726b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
21 deletions
+6
-21
libjava/java/lang/Class.h
+6
-21
No files found.
libjava/java/lang/Class.h
View file @
5b0b42ed
...
...
@@ -14,7 +14,6 @@ details. */
#pragma interface
#include <stddef.h>
#include <java/lang/Object.h>
#include <java/lang/String.h>
#include <java/net/URL.h>
...
...
@@ -54,6 +53,7 @@ enum
struct
_Jv_Field
;
struct
_Jv_VTable
;
union
_Jv_word
;
struct
_Jv_ArrayVTable
;
struct
_Jv_Constants
{
...
...
@@ -217,35 +217,17 @@ public:
// This constructor is used to create Class object for the primitive
// types. See prims.cc.
Class
(
jobject
cname
,
jbyte
sig
,
jint
len
,
jobject
array_vtable
)
{
using
namespace
java
::
lang
::
reflect
;
_Jv_Utf8Const
*
_Jv_makeUtf8Const
(
char
*
s
,
int
len
);
Class
()
{
// C++ ctors set the vtbl pointer to point at an offset inside the vtable
// object. That doesn't work for Java, so this hack adjusts it back.
((
_Jv_Self
*
)
this
)
->
vtable_ptr
-=
2
*
sizeof
(
void
*
);
// We must initialize every field of the class. We do this in the
// same order they are declared in Class.h, except for fields that
// are initialized to NULL.
name
=
_Jv_makeUtf8Const
((
char
*
)
cname
,
-
1
);
accflags
=
Modifier
::
PUBLIC
|
Modifier
::
FINAL
|
Modifier
::
ABSTRACT
;
method_count
=
sig
;
size_in_bytes
=
len
;
vtable
=
JV_PRIMITIVE_VTABLE
;
state
=
JV_STATE_DONE
;
depth
=
-
1
;
if
(
method_count
!=
'V'
)
_Jv_NewArrayClass
(
this
,
NULL
,
(
_Jv_VTable
*
)
array_vtable
);
}
static
java
::
lang
::
Class
class
$
;
private
:
Class
();
void
checkMemberAccess
(
jint
flags
);
void
initializeClass
(
void
);
...
...
@@ -311,6 +293,9 @@ private:
friend
jclass
_Jv_NewClass
(
_Jv_Utf8Const
*
name
,
jclass
superclass
,
java
::
lang
::
ClassLoader
*
loader
);
// in prims.cc
friend
void
_Jv_InitPrimClass
(
jclass
,
char
*
,
char
,
int
,
_Jv_ArrayVTable
*
);
friend
void
_Jv_PrepareCompiledClass
(
jclass
);
friend
void
_Jv_PrepareConstantTimeTables
(
jclass
);
friend
jshort
_Jv_GetInterfaces
(
jclass
,
_Jv_ifaces
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment