mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
add compile.cpp changes
This commit is contained in:
parent
4df8f59f3c
commit
924f242e66
@ -19,20 +19,20 @@
|
|||||||
namespace vm {
|
namespace vm {
|
||||||
|
|
||||||
inline int16_t
|
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 v1 = code->body()[ip++];
|
||||||
uint8_t v2 = codeBody(t, code, ip++);
|
uint8_t v2 = code->body()[ip++];
|
||||||
return ((v1 << 8) | v2);
|
return ((v1 << 8) | v2);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int32_t
|
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 v1 = code->body()[ip++];
|
||||||
uint8_t v2 = codeBody(t, code, ip++);
|
uint8_t v2 = code->body()[ip++];
|
||||||
uint8_t v3 = codeBody(t, code, ip++);
|
uint8_t v3 = code->body()[ip++];
|
||||||
uint8_t v4 = codeBody(t, code, ip++);
|
uint8_t v4 = code->body()[ip++];
|
||||||
return ((v1 << 24) | (v2 << 16) | (v3 << 8) | v4);
|
return ((v1 << 24) | (v2 << 16) | (v3 << 8) | v4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
863
src/compile.cpp
863
src/compile.cpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user