Home | History | Annotate | Download | only in cpp

Lines Matching refs:v8

17 #include <v8.h>
23 // Extracts a C string from a V8 Utf8Value.
24 const char* ToCString(const v8::String::Utf8Value& value) {
28 // Extracts a C string from a V8 AsciiValue.
29 const char* ToCString(const v8::String::AsciiValue& value) {
33 // Extracts a C string from a v8::Value
34 const char* ToCString(v8::Handle<v8::Value> value) {
35 v8::String::AsciiValue strAsciiValue(value);
40 void LogErrorMessage(v8::Handle<v8::Message> message,
42 v8::HandleScope handle_scope;
44 // V8 didn't provide any extra information about this error; just
52 v8::String::Utf8Value filename(message->GetScriptResourceName());
58 v8::String::Utf8Value sourceline(message->GetSourceLine());
76 LOGD("%s", ToCString(v8::String::Utf8Value(message->Get())));
82 void ReportException(v8::TryCatch* try_catch) {
83 v8::HandleScope handle_scope;
85 v8::String::Utf8Value exception(try_catch->Exception());
86 v8::Handle<v8::Message> msg = try_catch->Message();