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

Side by Side Diff: src/isolate.h

Issue 620673005: Introduce HasPendingMicrotasks API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « src/api.cc ('k') | src/isolate.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 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_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include "include/v8-debug.h" 8 #include "include/v8-debug.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, NULL) \ 368 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, NULL) \
369 /* Part of the state of liveedit. */ \ 369 /* Part of the state of liveedit. */ \
370 V(FunctionInfoListener*, active_function_info_listener, NULL) \ 370 V(FunctionInfoListener*, active_function_info_listener, NULL) \
371 /* State for Relocatable. */ \ 371 /* State for Relocatable. */ \
372 V(Relocatable*, relocatable_top, NULL) \ 372 V(Relocatable*, relocatable_top, NULL) \
373 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ 373 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \
374 V(Object*, string_stream_current_security_token, NULL) \ 374 V(Object*, string_stream_current_security_token, NULL) \
375 /* Serializer state. */ \ 375 /* Serializer state. */ \
376 V(ExternalReferenceTable*, external_reference_table, NULL) \ 376 V(ExternalReferenceTable*, external_reference_table, NULL) \
377 V(int, pending_microtask_count, 0) \ 377 V(int, pending_microtask_count, 0) \
378 V(int, running_microtask_count, 0) \
378 V(bool, autorun_microtasks, true) \ 379 V(bool, autorun_microtasks, true) \
379 V(HStatistics*, hstatistics, NULL) \ 380 V(HStatistics*, hstatistics, NULL) \
380 V(HStatistics*, tstatistics, NULL) \ 381 V(HStatistics*, tstatistics, NULL) \
381 V(HTracer*, htracer, NULL) \ 382 V(HTracer*, htracer, NULL) \
382 V(CodeTracer*, code_tracer, NULL) \ 383 V(CodeTracer*, code_tracer, NULL) \
383 V(bool, fp_stubs_generated, false) \ 384 V(bool, fp_stubs_generated, false) \
384 V(int, max_available_threads, 0) \ 385 V(int, max_available_threads, 0) \
385 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ 386 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \
386 V(InterruptCallback, api_interrupt_callback, NULL) \ 387 V(InterruptCallback, api_interrupt_callback, NULL) \
387 V(void*, api_interrupt_callback_data, NULL) \ 388 V(void*, api_interrupt_callback_data, NULL) \
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 void AddCallCompletedCallback(CallCompletedCallback callback); 1095 void AddCallCompletedCallback(CallCompletedCallback callback);
1095 void RemoveCallCompletedCallback(CallCompletedCallback callback); 1096 void RemoveCallCompletedCallback(CallCompletedCallback callback);
1096 void FireCallCompletedCallback(); 1097 void FireCallCompletedCallback();
1097 1098
1098 void SetPromiseRejectCallback(PromiseRejectCallback callback); 1099 void SetPromiseRejectCallback(PromiseRejectCallback callback);
1099 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, 1100 void ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value,
1100 v8::PromiseRejectEvent event); 1101 v8::PromiseRejectEvent event);
1101 1102
1102 void EnqueueMicrotask(Handle<Object> microtask); 1103 void EnqueueMicrotask(Handle<Object> microtask);
1103 void RunMicrotasks(); 1104 void RunMicrotasks();
1105 bool HasMoreMicrotasksToRun() const;
1104 1106
1105 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); 1107 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback);
1106 void CountUsage(v8::Isolate::UseCounterFeature feature); 1108 void CountUsage(v8::Isolate::UseCounterFeature feature);
1107 1109
1108 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); 1110 BasicBlockProfiler* GetOrCreateBasicBlockProfiler();
1109 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } 1111 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; }
1110 1112
1111 static Isolate* NewForTesting() { return new Isolate(); } 1113 static Isolate* NewForTesting() { return new Isolate(); }
1112 1114
1113 private: 1115 private:
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 } 1554 }
1553 1555
1554 EmbeddedVector<char, 128> filename_; 1556 EmbeddedVector<char, 128> filename_;
1555 FILE* file_; 1557 FILE* file_;
1556 int scope_depth_; 1558 int scope_depth_;
1557 }; 1559 };
1558 1560
1559 } } // namespace v8::internal 1561 } } // namespace v8::internal
1560 1562
1561 #endif // V8_ISOLATE_H_ 1563 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698