OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 static int Main(int argc, char* argv[]); | 132 static int Main(int argc, char* argv[]); |
133 static Handle<Array> GetCompletions(Handle<String> text, | 133 static Handle<Array> GetCompletions(Handle<String> text, |
134 Handle<String> full); | 134 Handle<String> full); |
135 static Handle<Object> DebugMessageDetails(Handle<String> message); | 135 static Handle<Object> DebugMessageDetails(Handle<String> message); |
136 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); | 136 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); |
137 | 137 |
138 static Handle<Value> Print(const Arguments& args); | 138 static Handle<Value> Print(const Arguments& args); |
139 static Handle<Value> Yield(const Arguments& args); | 139 static Handle<Value> Yield(const Arguments& args); |
140 static Handle<Value> Quit(const Arguments& args); | 140 static Handle<Value> Quit(const Arguments& args); |
141 static Handle<Value> Version(const Arguments& args); | 141 static Handle<Value> Version(const Arguments& args); |
| 142 static Handle<Value> Read(const Arguments& args); |
142 static Handle<Value> Load(const Arguments& args); | 143 static Handle<Value> Load(const Arguments& args); |
143 // The OS object on the global object contains methods for performing | 144 // The OS object on the global object contains methods for performing |
144 // operating system calls: | 145 // operating system calls: |
145 // | 146 // |
146 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will | 147 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will |
147 // run the command, passing the arguments to the program. The standard output | 148 // run the command, passing the arguments to the program. The standard output |
148 // of the program will be picked up and returned as a multiline string. If | 149 // of the program will be picked up and returned as a multiline string. If |
149 // timeout1 is present then it should be a number. -1 indicates no timeout | 150 // timeout1 is present then it should be a number. -1 indicates no timeout |
150 // and a positive number is used as a timeout in milliseconds that limits the | 151 // and a positive number is used as a timeout in milliseconds that limits the |
151 // time spent waiting between receiving output characters from the program. | 152 // time spent waiting between receiving output characters from the program. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 const char* name_; | 212 const char* name_; |
212 LineEditor* next_; | 213 LineEditor* next_; |
213 static LineEditor* first_; | 214 static LineEditor* first_; |
214 }; | 215 }; |
215 | 216 |
216 | 217 |
217 } // namespace v8 | 218 } // namespace v8 |
218 | 219 |
219 | 220 |
220 #endif // V8_D8_H_ | 221 #endif // V8_D8_H_ |
OLD | NEW |