OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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<Object> DebugMessageDetails(Handle<String> message); | 91 static Handle<Object> DebugMessageDetails(Handle<String> message); |
92 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); | 92 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); |
93 | 93 |
94 static Handle<Value> Print(const Arguments& args); | 94 static Handle<Value> Print(const Arguments& args); |
| 95 static Handle<Value> Yield(const Arguments& args); |
95 static Handle<Value> Quit(const Arguments& args); | 96 static Handle<Value> Quit(const Arguments& args); |
96 static Handle<Value> Version(const Arguments& args); | 97 static Handle<Value> Version(const Arguments& args); |
97 static Handle<Value> Load(const Arguments& args); | 98 static Handle<Value> Load(const Arguments& args); |
98 | 99 |
99 static Handle<Context> utility_context() { return utility_context_; } | 100 static Handle<Context> utility_context() { return utility_context_; } |
100 | 101 |
101 static const char* kHistoryFileName; | 102 static const char* kHistoryFileName; |
102 static const char* kPrompt; | 103 static const char* kPrompt; |
103 private: | 104 private: |
104 static Persistent<Context> utility_context_; | 105 static Persistent<Context> utility_context_; |
(...skipping 26 matching lines...) Expand all Loading... |
131 const char* name_; | 132 const char* name_; |
132 LineEditor* next_; | 133 LineEditor* next_; |
133 static LineEditor* first_; | 134 static LineEditor* first_; |
134 }; | 135 }; |
135 | 136 |
136 | 137 |
137 } // namespace v8 | 138 } // namespace v8 |
138 | 139 |
139 | 140 |
140 #endif // V8_D8_H_ | 141 #endif // V8_D8_H_ |
OLD | NEW |