It's defined by a macro in objects-inl.h.In particular, it's the macro (line
56 in revision 2109):
#define CAST_ACCESSOR(type) \
type* type::cast(Object* object) { \
ASSERT(object->Is##type()); \
return reinterpret_cast<type*>(object); \
}
invoked later (line 1392) as:
CAST_ACCESSOR(String)
Best of luck
/Lasse
On Sun, Jun 7, 2009 at 4:15 PM, Yu-zhong shen <[email protected]> wrote:
> Hi,
>
> I wonder where the function is defined.
>
> I have use grep to check all files under src, just found some invoke
> statments.
>
> The function is wildly used without implementation !!
>
> >
>
--
Lasse R.H. Nielsen / [email protected]'Faith without judgement merely
degrades the spirit divine'
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---