search for: fixnumclass

Displaying 5 results from an estimated 5 matches for "fixnumclass".

2017 Jun 04
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...%val } Trying to replace the setGlobal call with what should be equivalent builder.CreateStore(value, ptr) results in what should end up in the second (i32) slot being stored in the first (i8*). I've added ::dump() calls where the CreateStore is, and this is what I get: { i8*, i32 } { i8* @FixnumClass, i32 32 } ; for value @foo = external global { i8*, i32 } ; for ptr Even more bizarrely trying to replace the getGlobal call with builder.CreateLoad(val) results in what has been stored in the first (i8*) slot being loaded correctly, but the second (i32) getting garbage out despite the correct v...
2017 Jun 05
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...9;s fed to the JIT: define { i8*, i32 } @"__anonToplevel/0"() prefix { i8*, i32 } (i32)* @"XEP:__anonToplevel/0" { entry: %0 = call { i8*, i32 } @debugPointer({ i8*, i32 }* nonnull @foo) %1 = call { i8*, i32 } @debugInt(i32 ptrtoint ({ i8*, i32 }* @foo to i32)) store i8* @FixnumClass, i8** getelementptr inbounds ({ i8*, i32 }, { i8*, i32 }* @foo, i32 0, i32 0), align 4 %2 = call { i8*, i32 } @debugInt(i32 ptrtoint (i32* getelementptr inbounds ({ i8*, i32 }, { i8*, i32 }* @foo, i32 0, i32 1) to i32)) store i32 123, i32* getelementptr inbounds ({ i8*, i32 }, { i8*, i32 }* @fo...
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...all { i8*, i32 }* @identity({ i8*, i32 }* nonnull @foo) > %1 = call { i8*, i32 } @debugPointer({ i8*, i32 }* %0) > %2 = getelementptr { i8*, i32 }, { i8*, i32 }* %0, i32 0, i32 0 > %3 = ptrtoint { i8*, i32 }* %0 to i32 > %4 = call { i8*, i32 } @debugInt(i32 %3) > store i8* @FixnumClass, i8** %2, align 4 > %5 = getelementptr { i8*, i32 }, { i8*, i32 }* %0, i32 0, i32 1 > %6 = ptrtoint i32* %5 to i32 > %7 = call { i8*, i32 } @debugInt(i32 %6) > store i32 123, i32* %5, align 4 > %8 = call { i8*, i32 } @debugPointer({ i8*, i32 }* %0) > store i8* @FixnumC...
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...alll 0 <_setfoo+0x26> > 00000026: IMAGE_REL_I386_REL32 _debugInt > 2a: c7 05 00 00 00 00 00 00 00 00 movl $0, 0 > 0000002c: IMAGE_REL_I386_DIR32 _foo > 00000030: IMAGE_REL_I386_DIR32 _JazzFixnumClass > 34: b9 00 00 00 00 movl $0, %ecx > 00000035: IMAGE_REL_I386_DIR32 _JazzFixnumClass > 39: 89 e6 movl %esp, %esi > 3b: c7 06 04 00 00 00 movl $4, (%esi) > 0000003d: IMAGE_REL_I386_...
2017 Jun 07
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...t;>> 00000026: IMAGE_REL_I386_REL32 _debugInt >>> 2a: c7 05 00 00 00 00 00 00 00 00 movl $0, 0 >>> 0000002c: IMAGE_REL_I386_DIR32 _foo >>> 00000030: IMAGE_REL_I386_DIR32 _JazzFixnumClass >>> 34: b9 00 00 00 00 movl $0, %ecx >>> 00000035: IMAGE_REL_I386_DIR32 _JazzFixnumClass >>> 39: 89 e6 movl %esp, %esi >>> 3b: c7 06 04 00 00 00 movl $4, (%esi) >>>...