OLD | NEW |
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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 V(Relocatable*, relocatable_top, nullptr) \ | 400 V(Relocatable*, relocatable_top, nullptr) \ |
401 V(DebugObjectCache*, string_stream_debug_object_cache, nullptr) \ | 401 V(DebugObjectCache*, string_stream_debug_object_cache, nullptr) \ |
402 V(Object*, string_stream_current_security_token, nullptr) \ | 402 V(Object*, string_stream_current_security_token, nullptr) \ |
403 V(ExternalReferenceTable*, external_reference_table, nullptr) \ | 403 V(ExternalReferenceTable*, external_reference_table, nullptr) \ |
404 V(intptr_t*, api_external_references, nullptr) \ | 404 V(intptr_t*, api_external_references, nullptr) \ |
405 V(AddressToIndexHashMap*, external_reference_map, nullptr) \ | 405 V(AddressToIndexHashMap*, external_reference_map, nullptr) \ |
406 V(HeapObjectToIndexHashMap*, root_index_map, nullptr) \ | 406 V(HeapObjectToIndexHashMap*, root_index_map, nullptr) \ |
407 V(v8::DeserializeInternalFieldsCallback, \ | 407 V(v8::DeserializeInternalFieldsCallback, \ |
408 deserialize_internal_fields_callback, nullptr) \ | 408 deserialize_internal_fields_callback, nullptr) \ |
409 V(int, pending_microtask_count, 0) \ | 409 V(int, pending_microtask_count, 0) \ |
410 V(int, debug_microtask_count, 0) \ | |
411 V(HStatistics*, hstatistics, nullptr) \ | 410 V(HStatistics*, hstatistics, nullptr) \ |
412 V(CompilationStatistics*, turbo_statistics, nullptr) \ | 411 V(CompilationStatistics*, turbo_statistics, nullptr) \ |
413 V(HTracer*, htracer, nullptr) \ | 412 V(HTracer*, htracer, nullptr) \ |
414 V(CodeTracer*, code_tracer, nullptr) \ | 413 V(CodeTracer*, code_tracer, nullptr) \ |
415 V(bool, fp_stubs_generated, false) \ | 414 V(bool, fp_stubs_generated, false) \ |
416 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ | 415 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
417 V(PromiseRejectCallback, promise_reject_callback, nullptr) \ | 416 V(PromiseRejectCallback, promise_reject_callback, nullptr) \ |
418 V(const v8::StartupData*, snapshot_blob, nullptr) \ | 417 V(const v8::StartupData*, snapshot_blob, nullptr) \ |
419 V(int, code_and_metadata_size, 0) \ | 418 V(int, code_and_metadata_size, 0) \ |
420 V(int, bytecode_and_metadata_size, 0) \ | 419 V(int, bytecode_and_metadata_size, 0) \ |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 | 1100 |
1102 void PromiseReactionJob(Handle<PromiseReactionJobInfo> info, | 1101 void PromiseReactionJob(Handle<PromiseReactionJobInfo> info, |
1103 MaybeHandle<Object>* result, | 1102 MaybeHandle<Object>* result, |
1104 MaybeHandle<Object>* maybe_exception); | 1103 MaybeHandle<Object>* maybe_exception); |
1105 void PromiseResolveThenableJob(Handle<PromiseResolveThenableJobInfo> info, | 1104 void PromiseResolveThenableJob(Handle<PromiseResolveThenableJobInfo> info, |
1106 MaybeHandle<Object>* result, | 1105 MaybeHandle<Object>* result, |
1107 MaybeHandle<Object>* maybe_exception); | 1106 MaybeHandle<Object>* maybe_exception); |
1108 void EnqueueMicrotask(Handle<Object> microtask); | 1107 void EnqueueMicrotask(Handle<Object> microtask); |
1109 void RunMicrotasks(); | 1108 void RunMicrotasks(); |
1110 bool IsRunningMicrotasks() const { return is_running_microtasks_; } | 1109 bool IsRunningMicrotasks() const { return is_running_microtasks_; } |
1111 int GetNextDebugMicrotaskId() { return debug_microtask_count_++; } | |
1112 | 1110 |
1113 Handle<Symbol> SymbolFor(Heap::RootListIndex dictionary_index, | 1111 Handle<Symbol> SymbolFor(Heap::RootListIndex dictionary_index, |
1114 Handle<String> name, bool private_symbol); | 1112 Handle<String> name, bool private_symbol); |
1115 | 1113 |
1116 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1114 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
1117 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1115 void CountUsage(v8::Isolate::UseCounterFeature feature); |
1118 | 1116 |
1119 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1117 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
1120 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1118 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
1121 | 1119 |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 | 1691 |
1694 EmbeddedVector<char, 128> filename_; | 1692 EmbeddedVector<char, 128> filename_; |
1695 FILE* file_; | 1693 FILE* file_; |
1696 int scope_depth_; | 1694 int scope_depth_; |
1697 }; | 1695 }; |
1698 | 1696 |
1699 } // namespace internal | 1697 } // namespace internal |
1700 } // namespace v8 | 1698 } // namespace v8 |
1701 | 1699 |
1702 #endif // V8_ISOLATE_H_ | 1700 #endif // V8_ISOLATE_H_ |
OLD | NEW |