Lines Matching refs:v8
1 // Copyright 2012 the V8 project authors. All rights reserved.
44 #include "../include/v8-testing.h"
56 #include "v8.h"
67 namespace v8 {
135 // Converts a V8 value to a C string.
136 const char* Shell::ToCString(const v8::String::Utf8Value& value) {
141 // Executes a string within the current v8 context.
177 v8::String::Utf8Value str(result);
202 v8::String::Utf8Value str(args[i]);
214 V8::ResumeProfiler();
220 V8::PauseProfiler();
328 type = v8::kExternalByteArray;
462 return CreateExternalArray(args, v8::kExternalByteArray, 0);
467 return CreateExternalArray(args, v8::kExternalByteArray, sizeof(int8_t));
515 v8::Unlocker unlocker;
531 return String::New(V8::GetVersion());
535 void Shell::ReportException(v8::TryCatch* try_catch) {
541 v8::String::Utf8Value exception(try_catch->Exception());
545 // V8 didn't provide any extra information about this error; just
550 v8::String::Utf8Value filename(message->GetScriptResourceName());
555 v8::String::Utf8Value sourceline(message->GetSourceLine());
568 v8::String::Utf8Value stack_trace(try_catch->StackTrace());
618 v8::Context::Scope scope(Shell::evaluation_context_);
619 v8::Debug::ProcessDebugMessages();
666 V8::SetCounterFunction(LookupCounter);
667 V8::SetCreateHistogramFunction(CreateHistogram);
668 V8::SetAddHistogramSampleFunction(AddHistogramSample);
770 v8::Debug::SetDebugEventListener(HandleDebugEvent);
778 class BZip2Decompressor : public v8::StartupDataDecompressor {
787 ASSERT_EQ(v8::StartupData::kBZip2,
788 v8::V8::GetCompressedStartupDataAlgorithm());
875 V8::SetCounterFunction(LookupCounter);
876 V8::SetCreateHistogramFunction(CreateHistogram);
877 V8::SetAddHistogramSampleFunction(AddHistogramSample);
891 v8::Debug::EnableAgent("d8 shell", i::FLAG_debugger_port, true);
892 v8::Debug::SetDebugMessageDispatchHandler(DispatchDebugMessages, true);
1008 // Release the V8 lock while reading files.
1009 v8::Unlocker unlocker(Isolate::GetCurrent());
1069 // Reads a file into a v8 string.
1086 printf("V8 version %s [console: %s]\n", V8::GetVersion(), console->name());
1373 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
1442 V8::ContextDisposedNotification();
1443 V8::IdleNotification(kLongIdlePauseInMs);
1532 V8::Dispose();
1541 } // namespace v8
1546 return v8::Shell::Main(argc, argv);