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