Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: src/d8.h

Issue 14509: Added command line debugger to D8 shell.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/SConscript ('k') | src/d8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 static void ReportException(TryCatch* try_catch); 81 static void ReportException(TryCatch* try_catch);
82 static void Initialize(); 82 static void Initialize();
83 static void OnExit(); 83 static void OnExit();
84 static int* LookupCounter(const char* name); 84 static int* LookupCounter(const char* name);
85 static void MapCounters(const char* name); 85 static void MapCounters(const char* name);
86 static Handle<String> ReadFile(const char* name); 86 static Handle<String> ReadFile(const char* name);
87 static void RunShell(); 87 static void RunShell();
88 static int Main(int argc, char* argv[]); 88 static int Main(int argc, char* argv[]);
89 static Handle<Array> GetCompletions(Handle<String> text, 89 static Handle<Array> GetCompletions(Handle<String> text,
90 Handle<String> full); 90 Handle<String> full);
91 static Handle<String> DebugEventToText(Handle<Object> event);
92 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command);
93 static Handle<Object> DebugResponseDetails(Handle<String> response);
91 94
92 static Handle<Value> Print(const Arguments& args); 95 static Handle<Value> Print(const Arguments& args);
93 static Handle<Value> Quit(const Arguments& args); 96 static Handle<Value> Quit(const Arguments& args);
94 static Handle<Value> Version(const Arguments& args); 97 static Handle<Value> Version(const Arguments& args);
95 static Handle<Value> Load(const Arguments& args); 98 static Handle<Value> Load(const Arguments& args);
96 99
100 static Handle<Context> utility_context() { return utility_context_; }
101
97 static const char* kHistoryFileName; 102 static const char* kHistoryFileName;
98 static const char* kPrompt; 103 static const char* kPrompt;
99 private: 104 private:
100 static Persistent<Context> utility_context_; 105 static Persistent<Context> utility_context_;
101 static Persistent<Context> evaluation_context_; 106 static Persistent<Context> evaluation_context_;
102 typedef std::map<const char*, Counter*> CounterMap; 107 typedef std::map<const char*, Counter*> CounterMap;
103 static CounterMap counter_map_; 108 static CounterMap counter_map_;
104 // We statically allocate a set of local counters to be used if we 109 // We statically allocate a set of local counters to be used if we
105 // don't want to store the stats in a memory-mapped file 110 // don't want to store the stats in a memory-mapped file
106 static CounterCollection local_counters_; 111 static CounterCollection local_counters_;
(...skipping 20 matching lines...) Expand all
127 const char* name_; 132 const char* name_;
128 LineEditor* next_; 133 LineEditor* next_;
129 static LineEditor* first_; 134 static LineEditor* first_;
130 }; 135 };
131 136
132 137
133 } // namespace v8 138 } // namespace v8
134 139
135 140
136 #endif // V8_D8_H_ 141 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698