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

Side by Side Diff: src/d8.h

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: remove weird arrow-generator thing Created 4 years, 7 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_D8_H_ 5 #ifndef V8_D8_H_
6 #define V8_D8_H_ 6 #define V8_D8_H_
7 7
8 #ifndef V8_SHARED 8 #ifndef V8_SHARED
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/base/platform/time.h" 10 #include "src/base/platform/time.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 static Local<String> ReadFromStdin(Isolate* isolate); 394 static Local<String> ReadFromStdin(Isolate* isolate);
395 static void ReadLine(const v8::FunctionCallbackInfo<v8::Value>& args) { 395 static void ReadLine(const v8::FunctionCallbackInfo<v8::Value>& args) {
396 args.GetReturnValue().Set(ReadFromStdin(args.GetIsolate())); 396 args.GetReturnValue().Set(ReadFromStdin(args.GetIsolate()));
397 } 397 }
398 static void Load(const v8::FunctionCallbackInfo<v8::Value>& args); 398 static void Load(const v8::FunctionCallbackInfo<v8::Value>& args);
399 static void WorkerNew(const v8::FunctionCallbackInfo<v8::Value>& args); 399 static void WorkerNew(const v8::FunctionCallbackInfo<v8::Value>& args);
400 static void WorkerPostMessage( 400 static void WorkerPostMessage(
401 const v8::FunctionCallbackInfo<v8::Value>& args); 401 const v8::FunctionCallbackInfo<v8::Value>& args);
402 static void WorkerGetMessage(const v8::FunctionCallbackInfo<v8::Value>& args); 402 static void WorkerGetMessage(const v8::FunctionCallbackInfo<v8::Value>& args);
403 static void WorkerTerminate(const v8::FunctionCallbackInfo<v8::Value>& args); 403 static void WorkerTerminate(const v8::FunctionCallbackInfo<v8::Value>& args);
404
405 // Run queued microtasks and clear task queue
406 static void FlushMicrotasks(const v8::FunctionCallbackInfo<v8::Value>& args);
407
404 // The OS object on the global object contains methods for performing 408 // The OS object on the global object contains methods for performing
405 // operating system calls: 409 // operating system calls:
406 // 410 //
407 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will 411 // os.system("program_name", ["arg1", "arg2", ...], timeout1, timeout2) will
408 // run the command, passing the arguments to the program. The standard output 412 // run the command, passing the arguments to the program. The standard output
409 // of the program will be picked up and returned as a multiline string. If 413 // of the program will be picked up and returned as a multiline string. If
410 // timeout1 is present then it should be a number. -1 indicates no timeout 414 // timeout1 is present then it should be a number. -1 indicates no timeout
411 // and a positive number is used as a timeout in milliseconds that limits the 415 // and a positive number is used as a timeout in milliseconds that limits the
412 // time spent waiting between receiving output characters from the program. 416 // time spent waiting between receiving output characters from the program.
413 // timeout2, if present, should be a number indicating the limit in 417 // timeout2, if present, should be a number indicating the limit in
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 static void RunShell(Isolate* isolate); 473 static void RunShell(Isolate* isolate);
470 static bool SetOptions(int argc, char* argv[]); 474 static bool SetOptions(int argc, char* argv[]);
471 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 475 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
472 }; 476 };
473 477
474 478
475 } // namespace v8 479 } // namespace v8
476 480
477 481
478 #endif // V8_D8_H_ 482 #endif // V8_D8_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698