Hi, >> - Is there a way to get to the code object from arbitrary address in that code object?
See v8::internal::Heap::FindCodeObject >> - get to the JSFunction from the code object >> - lookup a JSFunction given a string. I think you'll have to right your own lookup methods for this. -- Vyacheslav Egorov On Fri, Jul 23, 2010 at 8:08 AM, zaheer ahmad <[email protected]> wrote: > hi, > - Is there a way to get to the code object from arbitrary address in > that code object? (GetCodeFromTargetAddress() requires a start > address) > - get to the JSFunction from the code object > - lookup a JSFunction given a string. The following works but modifies > the factory > Handle<String> name = Factory::LookupAsciiSymbol("<MySymbol>"); > Handle<JSFunction> function = Handle<JSFunction>( > JSFunction::cast(Top::context()->global()->GetProperty(*name))); > The above is required to help my debugging the function code after > patching it with ic targets. > > thanks, > Zaheer > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
