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

Side by Side Diff: src/isolate.h

Issue 2425553003: Move PromiseNextMicrotaskID to cpp (Closed)
Patch Set: Fix build Created 4 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
« no previous file with comments | « no previous file | src/js/async-await.js » ('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 <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 nullptr) \ 396 nullptr) \
397 /* State for Relocatable. */ \ 397 /* State for Relocatable. */ \
398 V(Relocatable*, relocatable_top, nullptr) \ 398 V(Relocatable*, relocatable_top, nullptr) \
399 V(DebugObjectCache*, string_stream_debug_object_cache, nullptr) \ 399 V(DebugObjectCache*, string_stream_debug_object_cache, nullptr) \
400 V(Object*, string_stream_current_security_token, nullptr) \ 400 V(Object*, string_stream_current_security_token, nullptr) \
401 V(ExternalReferenceTable*, external_reference_table, nullptr) \ 401 V(ExternalReferenceTable*, external_reference_table, nullptr) \
402 V(intptr_t*, api_external_references, nullptr) \ 402 V(intptr_t*, api_external_references, nullptr) \
403 V(base::HashMap*, external_reference_map, nullptr) \ 403 V(base::HashMap*, external_reference_map, nullptr) \
404 V(base::HashMap*, root_index_map, nullptr) \ 404 V(base::HashMap*, root_index_map, nullptr) \
405 V(int, pending_microtask_count, 0) \ 405 V(int, pending_microtask_count, 0) \
406 V(int, debug_microtask_count, 0) \
406 V(HStatistics*, hstatistics, nullptr) \ 407 V(HStatistics*, hstatistics, nullptr) \
407 V(CompilationStatistics*, turbo_statistics, nullptr) \ 408 V(CompilationStatistics*, turbo_statistics, nullptr) \
408 V(HTracer*, htracer, nullptr) \ 409 V(HTracer*, htracer, nullptr) \
409 V(CodeTracer*, code_tracer, nullptr) \ 410 V(CodeTracer*, code_tracer, nullptr) \
410 V(bool, fp_stubs_generated, false) \ 411 V(bool, fp_stubs_generated, false) \
411 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ 412 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \
412 V(PromiseRejectCallback, promise_reject_callback, nullptr) \ 413 V(PromiseRejectCallback, promise_reject_callback, nullptr) \
413 V(const v8::StartupData*, snapshot_blob, nullptr) \ 414 V(const v8::StartupData*, snapshot_blob, nullptr) \
414 V(int, code_and_metadata_size, 0) \ 415 V(int, code_and_metadata_size, 0) \
415 V(int, bytecode_and_metadata_size, 0) \ 416 V(int, bytecode_and_metadata_size, 0) \
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 1098
1098 void PromiseReactionJob(Handle<PromiseReactionJobInfo> info, 1099 void PromiseReactionJob(Handle<PromiseReactionJobInfo> info,
1099 MaybeHandle<Object>* result, 1100 MaybeHandle<Object>* result,
1100 MaybeHandle<Object>* maybe_exception); 1101 MaybeHandle<Object>* maybe_exception);
1101 void PromiseResolveThenableJob(Handle<PromiseResolveThenableJobInfo> info, 1102 void PromiseResolveThenableJob(Handle<PromiseResolveThenableJobInfo> info,
1102 MaybeHandle<Object>* result, 1103 MaybeHandle<Object>* result,
1103 MaybeHandle<Object>* maybe_exception); 1104 MaybeHandle<Object>* maybe_exception);
1104 void EnqueueMicrotask(Handle<Object> microtask); 1105 void EnqueueMicrotask(Handle<Object> microtask);
1105 void RunMicrotasks(); 1106 void RunMicrotasks();
1106 bool IsRunningMicrotasks() const { return is_running_microtasks_; } 1107 bool IsRunningMicrotasks() const { return is_running_microtasks_; }
1108 int GetNextDebugMicrotaskId() { return debug_microtask_count_++; }
1107 1109
1108 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); 1110 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback);
1109 void CountUsage(v8::Isolate::UseCounterFeature feature); 1111 void CountUsage(v8::Isolate::UseCounterFeature feature);
1110 1112
1111 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); 1113 BasicBlockProfiler* GetOrCreateBasicBlockProfiler();
1112 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } 1114 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; }
1113 1115
1114 std::string GetTurboCfgFileName(); 1116 std::string GetTurboCfgFileName();
1115 1117
1116 #if TRACE_MAPS 1118 #if TRACE_MAPS
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 1678
1677 EmbeddedVector<char, 128> filename_; 1679 EmbeddedVector<char, 128> filename_;
1678 FILE* file_; 1680 FILE* file_;
1679 int scope_depth_; 1681 int scope_depth_;
1680 }; 1682 };
1681 1683
1682 } // namespace internal 1684 } // namespace internal
1683 } // namespace v8 1685 } // namespace v8
1684 1686
1685 #endif // V8_ISOLATE_H_ 1687 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/js/async-await.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698