Home | History | Annotate | Download | only in src

Lines Matching refs:Shell

112   friend class Shell;
151 return Shell::ReadFromStdin(isolate_);
156 CounterMap* Shell::counter_map_;
157 i::OS::MemoryMappedFile* Shell::counters_file_ = NULL;
158 CounterCollection Shell::local_counters_;
159 CounterCollection* Shell::counters_ = &local_counters_;
160 i::Mutex* Shell::context_mutex_(i::OS::CreateMutex());
161 Persistent<Context> Shell::utility_context_;
164 Persistent<Context> Shell::evaluation_context_;
165 ShellOptions Shell::options;
166 const char* Shell::kPrompt = "d8> ";
182 const char* Shell::ToCString(const v8::String::Utf8Value& value) {
188 bool Shell::ExecuteString(Isolate* isolate,
290 void Shell::RealmCurrent(const v8::FunctionCallbackInfo<v8::Value>& args) {
300 void Shell::RealmOwner(const v8::FunctionCallbackInfo<v8::Value>& args) {
315 void Shell::RealmGlobal(const v8::FunctionCallbackInfo<v8::Value>& args) {
332 void Shell::RealmCreate(const v8::FunctionCallbackInfo<v8::Value>& args) {
350 void Shell::RealmDispose(const v8::FunctionCallbackInfo<v8::Value>& args) {
370 void Shell::RealmSwitch(const v8::FunctionCallbackInfo<v8::Value>& args) {
387 void Shell::RealmEval(const v8::FunctionCallbackInfo<v8::Value>& args) {
410 void Shell::RealmSharedGet(Local<String> property,
418 void Shell::RealmSharedSet(Local<String> property,
428 void Shell::Print(const v8::FunctionCallbackInfo<v8::Value>& args) {
435 void Shell::Write(const v8::FunctionCallbackInfo<v8::Value>& args) {
460 void Shell::Read(const v8::FunctionCallbackInfo<v8::Value>& args) {
475 Handle<String> Shell::ReadFromStdin(Isolate* isolate) {
505 void Shell::Load(const v8::FunctionCallbackInfo<v8::Value>& args) {
530 void Shell::Quit(const v8::FunctionCallbackInfo<v8::Value>& args) {
537 void Shell::Version(const v8::FunctionCallbackInfo<v8::Value>& args) {
542 void Shell::ReportException(Isolate* isolate, v8::TryCatch* try_catch) {
593 Handle<Array> Shell::GetCompletions(Isolate* isolate,
612 Handle<Object> Shell::DebugMessageDetails(Isolate* isolate,
627 Handle<Value> Shell::DebugCommandToJSONRequest(Isolate* isolate,
642 void Shell::DispatchDebugMessages() {
646 v8::Local<v8::Context>::New(isolate, Shell::evaluation_context_);
685 void Shell::MapCounters(const char* name) {
712 Counter* Shell::GetCounter(const char* name, bool is_histogram) {
728 int* Shell::LookupCounter(const char* name) {
739 void* Shell::CreateHistogram(const char* name,
747 void Shell::AddHistogramSample(void* histogram, int sample) {
753 void Shell::InstallUtilityScript(Isolate* isolate) {
778 // Run the d8 shell utility script in the utility context
790 // Mark the d8 shell script as native to avoid it showing up as normal source
838 Handle<ObjectTemplate> Shell::CreateGlobalTemplate(Isolate* isolate) {
881 void Shell::Initialize(Isolate* isolate) {
892 Shell::counter_map_ = new CounterMap();
905 void Shell::InitializeDebugger(Isolate* isolate) {
917 v8::Debug::EnableAgent("d8 shell", i::FLAG_debugger_port, true);
925 Local<Context> Shell::CreateEvaluationContext(Isolate* isolate) {
956 void Shell::Exit(int exit_code) {
978 void Shell::OnExit() {
1077 void Shell::ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args) {
1127 Handle<String> Shell::ReadFile(Isolate* isolate, const char* name) {
1137 void Shell::RunShell(Isolate* isolate) {
1150 Handle<String> input = console->Prompt(Shell::kPrompt);
1193 Shell::CreateEvaluationContext(isolate_);
1207 Handle<String> str = Shell::ReadFile(isolate_, filename);
1210 Shell::Exit(1);
1213 Shell::ExecuteString(isolate_, str, String::New(filename), false, false);
1242 if (!Shell::ExecuteString(isolate, source, file_name, false, true)) {
1243 Shell::Exit(1);
1255 Shell::Exit(1);
1257 if (!Shell::ExecuteString(isolate, source, file_name, false, true)) {
1258 Shell::Exit(1);
1295 Local<Context> context = Shell::CreateEvaluationContext(isolate);
1302 if (Shell::options.send_idle_notification) {
1309 } while (!Shell::options.last_run);
1325 if (Shell::options.last_run) {
1334 bool Shell::SetOptions(int argc, char* argv[]) {
1346 } else if (strcmp(argv[i], "--shell") == 0) {
1475 int Shell::RunMain(Isolate* isolate, int argc, char* argv[]) {
1504 // Keep using the same context in the interactive shell.
1648 int Shell::Main(int argc, char* argv[]) {
1714 // Run interactive shell if explicitly requested or if no script has been
1739 return v8::Shell::Main(argc, argv);