Thanks a lot for reply But I still can't get correct *Kind*.
__ ldr(ip, FieldMemOperand(ip, JSFunction::kCodeEntryOffset)); __ sub(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); uint32_t mask = LOperand::KindField::kMask; __ ldr(ip, FieldMemOperand(ip, Code::kFlagsOffset)); __ and_(ip, ip, Operand(mask)); __ cmp(ip, Operand(Code::OPTIMIZED_FUNCTION)); But after *and *all I have is *0x0* in the *ip *register. Thank you среда, 19 июня 2013 г., 15:47:36 UTC+4 пользователь Michael Starzinger написал: > > __ mov(eax, FieldOperand(edi, JSFunction::kCodeEntryOffset)); > __ sub(eax, Immediate(Code::kHeaderSize - kHeapObjectTag)); > > Best regards, > Michael > > > On Wed, Jun 19, 2013 at 1:31 PM, Valeriy Savchenko > <[email protected]<javascript:> > > wrote: > >> Hello, >> >> I need to generate assembly that will be checking the *Code::Kind *for >> some *JSFunction*. The main problem to find the *Code* itself. So... >> >> Is there any way to get *Code* for the known *JSFunction* to use in >> generated assembly? >> >> Thank you >> >> -- >> -- >> v8-users mailing list >> [email protected] <javascript:> >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
