OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 static void AddHistogramSample(void* histogram, int sample); | 291 static void AddHistogramSample(void* histogram, int sample); |
292 static void MapCounters(const char* name); | 292 static void MapCounters(const char* name); |
293 | 293 |
294 #ifdef ENABLE_DEBUGGER_SUPPORT | 294 #ifdef ENABLE_DEBUGGER_SUPPORT |
295 static Handle<Object> DebugMessageDetails(Handle<String> message); | 295 static Handle<Object> DebugMessageDetails(Handle<String> message); |
296 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); | 296 static Handle<Value> DebugCommandToJSONRequest(Handle<String> command); |
297 static void DispatchDebugMessages(); | 297 static void DispatchDebugMessages(); |
298 #endif // ENABLE_DEBUGGER_SUPPORT | 298 #endif // ENABLE_DEBUGGER_SUPPORT |
299 #endif // V8_SHARED | 299 #endif // V8_SHARED |
300 | 300 |
301 #ifdef WIN32 | |
302 #undef Yield | |
303 #endif | |
304 | |
305 static Handle<Value> Print(const Arguments& args); | 301 static Handle<Value> Print(const Arguments& args); |
306 static Handle<Value> Write(const Arguments& args); | 302 static Handle<Value> Write(const Arguments& args); |
307 static Handle<Value> Yield(const Arguments& args); | |
308 static Handle<Value> Quit(const Arguments& args); | 303 static Handle<Value> Quit(const Arguments& args); |
309 static Handle<Value> Version(const Arguments& args); | 304 static Handle<Value> Version(const Arguments& args); |
310 static Handle<Value> EnableProfiler(const Arguments& args); | 305 static Handle<Value> EnableProfiler(const Arguments& args); |
311 static Handle<Value> DisableProfiler(const Arguments& args); | 306 static Handle<Value> DisableProfiler(const Arguments& args); |
312 static Handle<Value> Read(const Arguments& args); | 307 static Handle<Value> Read(const Arguments& args); |
313 static Handle<Value> ReadBuffer(const Arguments& args); | 308 static Handle<Value> ReadBuffer(const Arguments& args); |
314 static Handle<String> ReadFromStdin(Isolate* isolate); | 309 static Handle<String> ReadFromStdin(Isolate* isolate); |
315 static Handle<Value> ReadLine(const Arguments& args) { | 310 static Handle<Value> ReadLine(const Arguments& args) { |
316 return ReadFromStdin(args.GetIsolate()); | 311 return ReadFromStdin(args.GetIsolate()); |
317 } | 312 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 static void ExternalArrayWeakCallback(Isolate* isolate, | 403 static void ExternalArrayWeakCallback(Isolate* isolate, |
409 Persistent<Value> object, | 404 Persistent<Value> object, |
410 void* data); | 405 void* data); |
411 }; | 406 }; |
412 | 407 |
413 | 408 |
414 } // namespace v8 | 409 } // namespace v8 |
415 | 410 |
416 | 411 |
417 #endif // V8_D8_H_ | 412 #endif // V8_D8_H_ |
OLD | NEW |