| 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 nullptr) \ | 398 nullptr) \ |
| 399 /* State for Relocatable. */ \ | 399 /* State for Relocatable. */ \ |
| 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(int, pending_microtask_count, 0) \ | 407 V(int, pending_microtask_count, 0) \ |
| 408 V(int, debug_microtask_count, kDebugPromiseFirstID) \ | |
| 409 V(HStatistics*, hstatistics, nullptr) \ | 408 V(HStatistics*, hstatistics, nullptr) \ |
| 410 V(CompilationStatistics*, turbo_statistics, nullptr) \ | 409 V(CompilationStatistics*, turbo_statistics, nullptr) \ |
| 411 V(HTracer*, htracer, nullptr) \ | 410 V(HTracer*, htracer, nullptr) \ |
| 412 V(CodeTracer*, code_tracer, nullptr) \ | 411 V(CodeTracer*, code_tracer, nullptr) \ |
| 413 V(bool, fp_stubs_generated, false) \ | 412 V(bool, fp_stubs_generated, false) \ |
| 414 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ | 413 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
| 415 V(PromiseRejectCallback, promise_reject_callback, nullptr) \ | 414 V(PromiseRejectCallback, promise_reject_callback, nullptr) \ |
| 416 V(const v8::StartupData*, snapshot_blob, nullptr) \ | 415 V(const v8::StartupData*, snapshot_blob, nullptr) \ |
| 417 V(int, code_and_metadata_size, 0) \ | 416 V(int, code_and_metadata_size, 0) \ |
| 418 V(int, bytecode_and_metadata_size, 0) \ | 417 V(int, bytecode_and_metadata_size, 0) \ |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 | 1098 |
| 1100 void PromiseReactionJob(Handle<PromiseReactionJobInfo> info, | 1099 void PromiseReactionJob(Handle<PromiseReactionJobInfo> info, |
| 1101 MaybeHandle<Object>* result, | 1100 MaybeHandle<Object>* result, |
| 1102 MaybeHandle<Object>* maybe_exception); | 1101 MaybeHandle<Object>* maybe_exception); |
| 1103 void PromiseResolveThenableJob(Handle<PromiseResolveThenableJobInfo> info, | 1102 void PromiseResolveThenableJob(Handle<PromiseResolveThenableJobInfo> info, |
| 1104 MaybeHandle<Object>* result, | 1103 MaybeHandle<Object>* result, |
| 1105 MaybeHandle<Object>* maybe_exception); | 1104 MaybeHandle<Object>* maybe_exception); |
| 1106 void EnqueueMicrotask(Handle<Object> microtask); | 1105 void EnqueueMicrotask(Handle<Object> microtask); |
| 1107 void RunMicrotasks(); | 1106 void RunMicrotasks(); |
| 1108 bool IsRunningMicrotasks() const { return is_running_microtasks_; } | 1107 bool IsRunningMicrotasks() const { return is_running_microtasks_; } |
| 1109 int GetNextDebugMicrotaskId() { return debug_microtask_count_++; } | |
| 1110 | 1108 |
| 1111 Handle<Symbol> SymbolFor(Heap::RootListIndex dictionary_index, | 1109 Handle<Symbol> SymbolFor(Heap::RootListIndex dictionary_index, |
| 1112 Handle<String> name, bool private_symbol); | 1110 Handle<String> name, bool private_symbol); |
| 1113 | 1111 |
| 1114 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1112 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
| 1115 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1113 void CountUsage(v8::Isolate::UseCounterFeature feature); |
| 1116 | 1114 |
| 1117 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1115 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
| 1118 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1116 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
| 1119 | 1117 |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 | 1693 |
| 1696 EmbeddedVector<char, 128> filename_; | 1694 EmbeddedVector<char, 128> filename_; |
| 1697 FILE* file_; | 1695 FILE* file_; |
| 1698 int scope_depth_; | 1696 int scope_depth_; |
| 1699 }; | 1697 }; |
| 1700 | 1698 |
| 1701 } // namespace internal | 1699 } // namespace internal |
| 1702 } // namespace v8 | 1700 } // namespace v8 |
| 1703 | 1701 |
| 1704 #endif // V8_ISOLATE_H_ | 1702 #endif // V8_ISOLATE_H_ |
| OLD | NEW |