Home | History | Annotate | Download | only in src

Lines Matching refs:Shell

45 const char* Shell::kHistoryFileName = ".d8_history";
46 const char* Shell::kPrompt = "d8> ";
91 CounterMap* Shell::counter_map_;
92 i::OS::MemoryMappedFile* Shell::counters_file_ = NULL;
93 CounterCollection Shell::local_counters_;
94 CounterCollection* Shell::counters_ = &local_counters_;
95 Persistent<Context> Shell::utility_context_;
96 Persistent<Context> Shell::evaluation_context_;
107 const char* Shell::ToCString(const v8::String::Utf8Value& value) {
113 bool Shell::ExecuteString(Handle<String> source,
152 Handle<Value> Shell::Print(const Arguments& args) {
159 Handle<Value> Shell::Write(const Arguments& args) {
176 Handle<Value> Shell::Read(const Arguments& args) {
189 Handle<Value> Shell::ReadLine(const Arguments& args) {
202 Handle<Value> Shell::Load(const Arguments& args) {
221 Handle<Value> Shell::Yield(const Arguments& args) {
227 Handle<Value> Shell::Quit(const Arguments& args) {
235 Handle<Value> Shell::Version(const Arguments& args) {
240 void Shell::ReportException(v8::TryCatch* try_catch) {
273 Handle<Array> Shell::GetCompletions(Handle<String> text, Handle<String> full) {
286 Handle<Object> Shell::DebugMessageDetails(Handle<String> message) {
297 Handle<Value> Shell::DebugCommandToJSONRequest(Handle<String> command) {
339 void Shell::MapCounters(const char* name) {
366 Counter* Shell::GetCounter(const char* name, bool is_histogram) {
382 int* Shell::LookupCounter(const char* name) {
393 void* Shell::CreateHistogram(const char* name,
401 void Shell::AddHistogramSample(void* histogram, int sample) {
407 void Shell::Initialize() {
408 Shell::counter_map_ = new CounterMap();
467 // Run the d8 shell utility script in the utility context
480 // Mark the d8 shell script as native to avoid it showing up as normal source
500 v8::Debug::EnableAgent("d8 shell", i::FLAG_debugger_port, true);
511 void Shell::OnExit() {
577 Handle<String> Shell::ReadFile(const char* name) {
587 void Shell::RunShell() {
598 i::SmartPointer<char> input = editor->Prompt(Shell::kPrompt);
628 FunctionTemplate::New(Shell::Print));
630 FunctionTemplate::New(Shell::Write));
632 FunctionTemplate::New(Shell::Read));
634 FunctionTemplate::New(Shell::ReadLine));
636 FunctionTemplate::New(Shell::Load));
638 FunctionTemplate::New(Shell::Yield));
640 FunctionTemplate::New(Shell::Version));
666 Handle<String> str = Shell::ReadFile(filename);
672 Shell::ExecuteString(str, String::New(filename), false, false);
681 int Shell::Main(int argc, char* argv[]) {
706 if (strcmp(str, "--shell") == 0) {
795 return v8::Shell::Main(argc, argv);