Hi, I'm trying to change a build of v8 to provide better debugging
information for a specific need. To do this I need to know certain things
within C++ in respect to the method being evoked. Ideally, I would like to
know the specific type of the class, but also the name of the object etc.
For example, lets say for you had a javascript class named Town:
function Town(name) {
this.name = name;
}
And a method
Town.prototype.findCoffeeShops = function() {
};
In javascript a new instance is made:
var Seatown = new Town('Seattle');
and is used for finding coffee shops:
Seatown,findCoffeeShops();
These are the thins that I would need to know:
1) what's the class type (it is Town in this example)
2) what was the given name of the class object (is Seatown in this example)
3) the name of the method called
Just looking for which section of the api to peek in or the source files if
the api doesnt provide this, though tips would be nice too.
Thanks
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users