mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
add compile.cpp changes
This commit is contained in:
parent
4df8f59f3c
commit
924f242e66
@ -19,20 +19,20 @@
|
||||
namespace vm {
|
||||
|
||||
inline int16_t
|
||||
codeReadInt16(Thread* t, object code, unsigned& ip)
|
||||
codeReadInt16(Thread* t UNUSED, GcCode* code, unsigned& ip)
|
||||
{
|
||||
uint8_t v1 = codeBody(t, code, ip++);
|
||||
uint8_t v2 = codeBody(t, code, ip++);
|
||||
uint8_t v1 = code->body()[ip++];
|
||||
uint8_t v2 = code->body()[ip++];
|
||||
return ((v1 << 8) | v2);
|
||||
}
|
||||
|
||||
inline int32_t
|
||||
codeReadInt32(Thread* t, object code, unsigned& ip)
|
||||
codeReadInt32(Thread* t UNUSED, GcCode* code, unsigned& ip)
|
||||
{
|
||||
uint8_t v1 = codeBody(t, code, ip++);
|
||||
uint8_t v2 = codeBody(t, code, ip++);
|
||||
uint8_t v3 = codeBody(t, code, ip++);
|
||||
uint8_t v4 = codeBody(t, code, ip++);
|
||||
uint8_t v1 = code->body()[ip++];
|
||||
uint8_t v2 = code->body()[ip++];
|
||||
uint8_t v3 = code->body()[ip++];
|
||||
uint8_t v4 = code->body()[ip++];
|
||||
return ((v1 << 24) | (v2 << 16) | (v3 << 8) | v4);
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ inline bool
|
||||
isSpecialMethod(Thread* t, GcMethod* method, GcClass* class_)
|
||||
{
|
||||
return (class_->flags() & ACC_SUPER)
|
||||
and strcmp(reinterpret_cast<const int8_t*>("<init>"),
|
||||
and strcmp(reinterpret_cast<const int8_t*>("<init>"),
|
||||
method->name()->body().begin()) != 0
|
||||
and isSuperclass(t, method->class_(), class_);
|
||||
}
|
||||
|
865
src/compile.cpp
865
src/compile.cpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user