| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 int min, | 125 int min, |
| 126 int max, | 126 int max, |
| 127 size_t buckets); | 127 size_t buckets); |
| 128 static void AddHistogramSample(void* histogram, int sample); | 128 static void AddHistogramSample(void* histogram, int sample); |
| 129 static void MapCounters(const char* name); | 129 static void MapCounters(const char* name); |
| 130 static Handle<String> ReadFile(const char* name); | 130 static Handle<String> ReadFile(const char* name); |
| 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 static Handle<Object> DebugMessageDetails(Handle<String> message); | 136 static Handle<Object> DebugMessageDetails(Handle<String> message); |
| 136 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); | 137 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); |
| 138 #endif |
| 137 | 139 |
| 138 static Handle<Value> Print(const Arguments& args); | 140 static Handle<Value> Print(const Arguments& args); |
| 139 static Handle<Value> Yield(const Arguments& args); | 141 static Handle<Value> Yield(const Arguments& args); |
| 140 static Handle<Value> Quit(const Arguments& args); | 142 static Handle<Value> Quit(const Arguments& args); |
| 141 static Handle<Value> Version(const Arguments& args); | 143 static Handle<Value> Version(const Arguments& args); |
| 142 static Handle<Value> Load(const Arguments& args); | 144 static Handle<Value> Load(const Arguments& args); |
| 143 // The OS object on the global object contains methods for performing | 145 // The OS object on the global object contains methods for performing |
| 144 // operating system calls: | 146 // operating system calls: |
| 145 // | 147 // |
| 146 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will | 148 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 const char* name_; | 213 const char* name_; |
| 212 LineEditor* next_; | 214 LineEditor* next_; |
| 213 static LineEditor* first_; | 215 static LineEditor* first_; |
| 214 }; | 216 }; |
| 215 | 217 |
| 216 | 218 |
| 217 } // namespace v8 | 219 } // namespace v8 |
| 218 | 220 |
| 219 | 221 |
| 220 #endif // V8_D8_H_ | 222 #endif // V8_D8_H_ |
| OLD | NEW |