mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
break each Class, Field, and Method into separate classes
In order to facilitate making the VM compatible with multiple class libraries, it's useful to separate the VM-specific representation of these classes from the library implementations. This commit introduces VMClass, VMField, and VMMethod for that purpose.
This commit is contained in:
@ -2224,7 +2224,11 @@ interpret(Thread* t)
|
||||
(t, frameMethod(t, frame), index - 1);
|
||||
if (UNLIKELY(exception)) goto throw_;
|
||||
|
||||
pushObject(t, class_);
|
||||
pushObject(t, getJClass(t, class_));
|
||||
} else if (objectClass(t, v)
|
||||
== arrayBody(t, t->m->types, Machine::ClassType))
|
||||
{
|
||||
pushObject(t, getJClass(t, v));
|
||||
} else {
|
||||
pushObject(t, v);
|
||||
}
|
||||
|
Reference in New Issue
Block a user