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 "include/v8-debug.h" | 9 #include "include/v8-debug.h" |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 V(int, pending_microtask_count, 0) \ | 384 V(int, pending_microtask_count, 0) \ |
385 V(bool, autorun_microtasks, true) \ | 385 V(bool, autorun_microtasks, true) \ |
386 V(HStatistics*, hstatistics, NULL) \ | 386 V(HStatistics*, hstatistics, NULL) \ |
387 V(CompilationStatistics*, turbo_statistics, NULL) \ | 387 V(CompilationStatistics*, turbo_statistics, NULL) \ |
388 V(HTracer*, htracer, NULL) \ | 388 V(HTracer*, htracer, NULL) \ |
389 V(CodeTracer*, code_tracer, NULL) \ | 389 V(CodeTracer*, code_tracer, NULL) \ |
390 V(bool, fp_stubs_generated, false) \ | 390 V(bool, fp_stubs_generated, false) \ |
391 V(int, max_available_threads, 0) \ | 391 V(int, max_available_threads, 0) \ |
392 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ | 392 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
393 V(PromiseRejectCallback, promise_reject_callback, NULL) \ | 393 V(PromiseRejectCallback, promise_reject_callback, NULL) \ |
| 394 V(const v8::StartupData*, snapshot_blob, NULL) \ |
394 ISOLATE_INIT_SIMULATOR_LIST(V) | 395 ISOLATE_INIT_SIMULATOR_LIST(V) |
395 | 396 |
396 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ | 397 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ |
397 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ | 398 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ |
398 inline type name() const { return thread_local_top_.name##_; } | 399 inline type name() const { return thread_local_top_.name##_; } |
399 | 400 |
400 | 401 |
401 class Isolate { | 402 class Isolate { |
402 // These forward declarations are required to make the friend declarations in | 403 // These forward declarations are required to make the friend declarations in |
403 // PerIsolateThreadData work on some older versions of gcc. | 404 // PerIsolateThreadData work on some older versions of gcc. |
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 } | 1582 } |
1582 | 1583 |
1583 EmbeddedVector<char, 128> filename_; | 1584 EmbeddedVector<char, 128> filename_; |
1584 FILE* file_; | 1585 FILE* file_; |
1585 int scope_depth_; | 1586 int scope_depth_; |
1586 }; | 1587 }; |
1587 | 1588 |
1588 } } // namespace v8::internal | 1589 } } // namespace v8::internal |
1589 | 1590 |
1590 #endif // V8_ISOLATE_H_ | 1591 #endif // V8_ISOLATE_H_ |
OLD | NEW |