Home | History | Annotate | Download | only in src

Lines Matching refs:v8

1 // Copyright 2009 the V8 project authors. All rights reserved.
32 #include "v8.h"
42 namespace v8 {
106 // Converts a V8 value to a C string.
107 const char* Shell::ToCString(const v8::String::Utf8Value& value) {
112 // Executes a string within the current v8 context.
142 v8::String::Utf8Value str(result);
165 v8::String::Utf8Value str(args[i]);
222 v8::Unlocker unlocker;
236 return String::New(V8::GetVersion());
240 void Shell::ReportException(v8::TryCatch* try_catch) {
242 v8::String::Utf8Value exception(try_catch->Exception());
246 // V8 didn't provide any extra information about this error; just
251 v8::String::Utf8Value filename(message->GetScriptResourceName());
256 v8::String::Utf8Value sourceline(message->GetSourceLine());
349 V8::SetCounterFunction(LookupCounter);
350 V8::SetCreateHistogramFunction(CreateHistogram);
351 V8::SetAddHistogramSampleFunction(AddHistogramSample);
413 V8::SetCounterFunction(LookupCounter);
414 V8::SetCreateHistogramFunction(CreateHistogram);
415 V8::SetAddHistogramSampleFunction(AddHistogramSample);
500 v8::Debug::EnableAgent("d8 shell", i::FLAG_debugger_port, true);
505 v8::Debug::SetDebugEventListener(HandleDebugEvent);
535 v8::Unlocker unlocker; // Release the V8 lock while reading files.
576 // Reads a file into a v8 string.
589 printf("V8 version %s [console: %s]\n", V8::GetVersion(), editor->name());
699 // Acquire the V8 lock once initialization has finished. Since the thread
700 // below may spawn new threads accessing V8 holding the V8 lock here is
732 v8::HandleScope handle_scope;
733 v8::Handle<v8::String> file_name = v8::String::New("unnamed");
734 v8::Handle<v8::String> source = v8::String::New(argv[i + 1]);
753 Handle<String> file_name = v8::String::New(str);
791 } // namespace v8
795 return v8::Shell::Main(argc, argv);