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

Side by Side Diff: src/d8.h

Issue 160639: Add a write() command to d8. This is the same as the print() command, with th... Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 months 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 | « no previous file | 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 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 static void RunShell(); 131 static void RunShell();
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 #ifdef ENABLE_DEBUGGER_SUPPORT 135 #ifdef ENABLE_DEBUGGER_SUPPORT
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> Yield(const Arguments& args); 142 static Handle<Value> Yield(const Arguments& args);
142 static Handle<Value> Quit(const Arguments& args); 143 static Handle<Value> Quit(const Arguments& args);
143 static Handle<Value> Version(const Arguments& args); 144 static Handle<Value> Version(const Arguments& args);
144 static Handle<Value> Read(const Arguments& args); 145 static Handle<Value> Read(const Arguments& args);
145 static Handle<Value> Load(const Arguments& args); 146 static Handle<Value> Load(const Arguments& args);
146 // The OS object on the global object contains methods for performing 147 // The OS object on the global object contains methods for performing
147 // operating system calls: 148 // operating system calls:
148 // 149 //
149 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will 150 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will
150 // run the command, passing the arguments to the program. The standard output 151 // run the command, passing the arguments to the program. The standard output
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 const char* name_; 215 const char* name_;
215 LineEditor* next_; 216 LineEditor* next_;
216 static LineEditor* first_; 217 static LineEditor* first_;
217 }; 218 };
218 219
219 220
220 } // namespace v8 221 } // namespace v8
221 222
222 223
223 #endif // V8_D8_H_ 224 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698