33 #ifndef V8_MESSAGES_H_
34 #define V8_MESSAGES_H_
41 class MessageLocation;
50 type_(type), args_(args), loc_(loc) { }
51 char*
type()
const {
return type_; }
73 start_pos_(start_pos),
113 #endif // V8_MESSAGES_H_
static Handle< JSMessageObject > MakeMessageObject(const char *type, MessageLocation *loc, Vector< Handle< Object > > args, Handle< String > stack_trace, Handle< JSArray > stack_frames)
V8Message(char *type, v8::internal::Handle< v8::internal::JSArray > args, const v8::internal::MessageLocation *loc)
static Handle< String > GetMessage(Handle< Object > data)
MessageLocation(Handle< Script > script, int start_pos, int end_pos)
Handle< Script > script() const
static void DefaultMessageReport(const MessageLocation *loc, Handle< Object > message_obj)
static SmartArrayPointer< char > GetLocalizedMessage(Handle< Object > data)
v8::internal::Handle< v8::internal::JSArray > args() const
const v8::internal::MessageLocation * loc() const
static void ReportMessage(Isolate *isolate, MessageLocation *loc, Handle< Object > message)