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 <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "include/v8-debug.h" | 11 #include "include/v8-debug.h" |
12 #include "src/allocation.h" | 12 #include "src/allocation.h" |
13 #include "src/assert-scope.h" | 13 #include "src/assert-scope.h" |
14 #include "src/base/accounting-allocator.h" | 14 #include "src/base/accounting-allocator.h" |
15 #include "src/base/atomicops.h" | 15 #include "src/base/atomicops.h" |
| 16 #include "src/base/hashmap.h" |
16 #include "src/builtins.h" | 17 #include "src/builtins.h" |
17 #include "src/cancelable-task.h" | 18 #include "src/cancelable-task.h" |
18 #include "src/contexts.h" | 19 #include "src/contexts.h" |
19 #include "src/date.h" | 20 #include "src/date.h" |
20 #include "src/execution.h" | 21 #include "src/execution.h" |
21 #include "src/frames.h" | 22 #include "src/frames.h" |
22 #include "src/futex-emulation.h" | 23 #include "src/futex-emulation.h" |
23 #include "src/global-handles.h" | 24 #include "src/global-handles.h" |
24 #include "src/handles.h" | 25 #include "src/handles.h" |
25 #include "src/hashmap.h" | |
26 #include "src/heap/heap.h" | 26 #include "src/heap/heap.h" |
27 #include "src/messages.h" | 27 #include "src/messages.h" |
28 #include "src/optimizing-compile-dispatcher.h" | 28 #include "src/optimizing-compile-dispatcher.h" |
29 #include "src/regexp/regexp-stack.h" | 29 #include "src/regexp/regexp-stack.h" |
30 #include "src/runtime-profiler.h" | 30 #include "src/runtime-profiler.h" |
31 #include "src/runtime/runtime.h" | 31 #include "src/runtime/runtime.h" |
32 #include "src/zone.h" | 32 #include "src/zone.h" |
33 | 33 |
34 namespace v8 { | 34 namespace v8 { |
35 | 35 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 352 |
353 private: | 353 private: |
354 void InitializeInternal(); | 354 void InitializeInternal(); |
355 | 355 |
356 v8::TryCatch* try_catch_handler_; | 356 v8::TryCatch* try_catch_handler_; |
357 }; | 357 }; |
358 | 358 |
359 | 359 |
360 #if USE_SIMULATOR | 360 #if USE_SIMULATOR |
361 | 361 |
362 #define ISOLATE_INIT_SIMULATOR_LIST(V) \ | 362 #define ISOLATE_INIT_SIMULATOR_LIST(V) \ |
363 V(bool, simulator_initialized, false) \ | 363 V(bool, simulator_initialized, false) \ |
364 V(HashMap*, simulator_i_cache, NULL) \ | 364 V(base::HashMap*, simulator_i_cache, NULL) \ |
365 V(Redirection*, simulator_redirection, NULL) | 365 V(Redirection*, simulator_redirection, NULL) |
366 #else | 366 #else |
367 | 367 |
368 #define ISOLATE_INIT_SIMULATOR_LIST(V) | 368 #define ISOLATE_INIT_SIMULATOR_LIST(V) |
369 | 369 |
370 #endif | 370 #endif |
371 | 371 |
372 | 372 |
373 #ifdef DEBUG | 373 #ifdef DEBUG |
374 | 374 |
(...skipping 25 matching lines...) Expand all Loading... |
400 V(AllowCodeGenerationFromStringsCallback, allow_code_gen_callback, NULL) \ | 400 V(AllowCodeGenerationFromStringsCallback, allow_code_gen_callback, NULL) \ |
401 /* To distinguish the function templates, so that we can find them in the */ \ | 401 /* To distinguish the function templates, so that we can find them in the */ \ |
402 /* function cache of the native context. */ \ | 402 /* function cache of the native context. */ \ |
403 V(int, next_serial_number, 0) \ | 403 V(int, next_serial_number, 0) \ |
404 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, NULL) \ | 404 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, NULL) \ |
405 /* State for Relocatable. */ \ | 405 /* State for Relocatable. */ \ |
406 V(Relocatable*, relocatable_top, NULL) \ | 406 V(Relocatable*, relocatable_top, NULL) \ |
407 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ | 407 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ |
408 V(Object*, string_stream_current_security_token, NULL) \ | 408 V(Object*, string_stream_current_security_token, NULL) \ |
409 V(ExternalReferenceTable*, external_reference_table, NULL) \ | 409 V(ExternalReferenceTable*, external_reference_table, NULL) \ |
410 V(HashMap*, external_reference_map, NULL) \ | 410 V(base::HashMap*, external_reference_map, NULL) \ |
411 V(HashMap*, root_index_map, NULL) \ | 411 V(base::HashMap*, root_index_map, NULL) \ |
412 V(int, pending_microtask_count, 0) \ | 412 V(int, pending_microtask_count, 0) \ |
413 V(HStatistics*, hstatistics, NULL) \ | 413 V(HStatistics*, hstatistics, NULL) \ |
414 V(CompilationStatistics*, turbo_statistics, NULL) \ | 414 V(CompilationStatistics*, turbo_statistics, NULL) \ |
415 V(HTracer*, htracer, NULL) \ | 415 V(HTracer*, htracer, NULL) \ |
416 V(CodeTracer*, code_tracer, NULL) \ | 416 V(CodeTracer*, code_tracer, NULL) \ |
417 V(bool, fp_stubs_generated, false) \ | 417 V(bool, fp_stubs_generated, false) \ |
418 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ | 418 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
419 V(PromiseRejectCallback, promise_reject_callback, NULL) \ | 419 V(PromiseRejectCallback, promise_reject_callback, NULL) \ |
420 V(const v8::StartupData*, snapshot_blob, NULL) \ | 420 V(const v8::StartupData*, snapshot_blob, NULL) \ |
421 V(int, code_and_metadata_size, 0) \ | 421 V(int, code_and_metadata_size, 0) \ |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1636 | 1636 |
1637 EmbeddedVector<char, 128> filename_; | 1637 EmbeddedVector<char, 128> filename_; |
1638 FILE* file_; | 1638 FILE* file_; |
1639 int scope_depth_; | 1639 int scope_depth_; |
1640 }; | 1640 }; |
1641 | 1641 |
1642 } // namespace internal | 1642 } // namespace internal |
1643 } // namespace v8 | 1643 } // namespace v8 |
1644 | 1644 |
1645 #endif // V8_ISOLATE_H_ | 1645 #endif // V8_ISOLATE_H_ |
OLD | NEW |