52 PrintF(
"%s:%i: %s\n", *data_str ? *data_str :
"<unknown>",
66 FACTORY->NewFixedArray(args.length());
67 for (
int i = 0; i < args.length(); i++) {
68 arguments_elements->set(i, *args[i]);
71 FACTORY->NewJSArrayWithElements(arguments_elements);
91 FACTORY->NewJSMessageObject(type_handle,
116 int global_length = global_listeners.
length();
117 if (global_length == 0) {
123 for (
int i = 0; i < global_length; i++) {
125 if (global_listeners.get(i)->IsUndefined())
continue;
129 FUNCTION_CAST<v8::MessageCallback>(callback_obj->foreign_address());
149 Isolate::Current()->js_builtins_object()->
150 GetPropertyNoExceptionThrown(*fmt_str)));
153 bool caught_exception;
156 Isolate::Current()->js_builtins_object(),
161 if (caught_exception || !result->IsString()) {
162 return FACTORY->LookupAsciiSymbol(
"<error>");
171 return result_string;
void FlattenString(Handle< String > string)
static Handle< Object > TryCall(Handle< JSFunction > func, Handle< Object > receiver, int argc, Handle< Object > argv[], bool *caught_exception)
void PrintF(const char *format,...)
static Handle< JSMessageObject > MakeMessageObject(const char *type, MessageLocation *loc, Vector< Handle< Object > > args, Handle< String > stack_trace, Handle< JSArray > stack_frames)
static Handle< T > cast(Handle< S > that)
static Foreign * cast(Object *obj)
void clear_pending_exception()
void clear_scheduled_exception()
static Local< Message > MessageToLocal(v8::internal::Handle< v8::internal::Object > obj)
Handle< JSValue > GetScriptWrapper(Handle< Script > script)
static Handle< String > GetMessage(Handle< Object > data)
Handle< Script > script() const
static Local< Context > ToLocal(v8::internal::Handle< v8::internal::Context > obj)
static void DefaultMessageReport(const MessageLocation *loc, Handle< Object > message_obj)
static SmartArrayPointer< char > GetLocalizedMessage(Handle< Object > data)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination trace on stack replacement optimize closures functions with arguments object optimize functions containing for in loops profiler considers IC stability primitive functions trigger their own optimization re try self optimization if it failed insert an interrupt check at function exit execution budget before interrupt is triggered call count before self optimization self_optimization count_based_interrupts weighted_back_edges trace_opt emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 enable use of ARMv7 instructions if enable use of MIPS FPU instructions if NULL
void set_external_caught_exception(bool value)
void(* MessageCallback)(Handle< Message > message, Handle< Value > data)
bool has_scheduled_exception()
static void ReportMessage(Isolate *isolate, MessageLocation *loc, Handle< Object > message)
static JSObject * cast(Object *obj)
v8::internal::Object * get(int index)
static JSFunction * cast(Object *obj)