Displaying 5 results from an estimated 5 matches for "03c10000".
2017 Jun 05
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...@foo, { i8*, i32 } { i8*
@FixnumClass, i32 123 })
%5 = call { i8*, i32 } @debugPointer({ i8*, i32 }* nonnull @foo)
ret { i8*, i32 } { i8* @FixnumClass, i32 123 }
}
Here is the runtime from calling the JITed function, including memory
addresses and contents, with my annotations:
# Before
p = 03C10000
class: 00000000
datum: 00000000
# Should be address of the class slot --> correct
x = 03C10000
# Should be address of the datum slot, ie address of class slot + 4 -->
incorrect
x = 03C10000
# Yeah, both values want to class slot, so actual class pointer got
clobbered
p = 03C10000
class:...
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...i32 } @debugPointer({ i8*, i32 }* nonnull @foo)
>> ret { i8*, i32 } { i8* @FixnumClass, i32 123 }
>> }
>>
>> Here is the runtime from calling the JITed function, including memory
>> addresses and contents, with my annotations:
>>
>> # Before
>> p = 03C10000
>> class: 00000000
>> datum: 00000000
>> # Should be address of the class slot --> correct
>> x = 03C10000
>> # Should be address of the datum slot, ie address of class slot + 4 -->
>> incorrect
>> x = 03C10000
>> # Yeah, both values want to...
2017 Jun 04
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
Emitting calls to these functions (written in an .ll file linked in) works
fine, and does the right thing.
%Any = type { i8*, i32 }
define dllexport void @setGlobal(%Any* %ptr, %Any %value) {
store %Any %value, %Any* %ptr
ret void
}
define dllexport %Any @getGlobal(%Any* %ptr) {
%val = load %Any, %Any* %ptr
ret %Any %val
}
Trying to replace the setGlobal call with what should be
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...ret { i8*, i32 } { i8* @FixnumClass, i32 123 }
>>>> }
>>>>
>>>> Here is the runtime from calling the JITed function, including memory
>>>> addresses and contents, with my annotations:
>>>>
>>>> # Before
>>>> p = 03C10000
>>>> class: 00000000
>>>> datum: 00000000
>>>> # Should be address of the class slot --> correct
>>>> x = 03C10000
>>>> # Should be address of the datum slot, ie address of class slot + 4 -->
>>>> incorrect
>>&g...
2017 Jun 07
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...t;>>>> }
>>>>>>
>>>>>> Here is the runtime from calling the JITed function, including
>>>>>> memory addresses and contents, with my annotations:
>>>>>>
>>>>>> # Before
>>>>>> p = 03C10000
>>>>>> class: 00000000
>>>>>> datum: 00000000
>>>>>> # Should be address of the class slot --> correct
>>>>>> x = 03C10000
>>>>>> # Should be address of the datum slot, ie address of class slot + 4
>...