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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 V(bool, fp_stubs_generated, false) \ | 413 V(bool, fp_stubs_generated, false) \ |
414 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ | 414 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
415 V(PromiseRejectCallback, promise_reject_callback, nullptr) \ | 415 V(PromiseRejectCallback, promise_reject_callback, nullptr) \ |
416 V(const v8::StartupData*, snapshot_blob, nullptr) \ | 416 V(const v8::StartupData*, snapshot_blob, nullptr) \ |
417 V(int, code_and_metadata_size, 0) \ | 417 V(int, code_and_metadata_size, 0) \ |
418 V(int, bytecode_and_metadata_size, 0) \ | 418 V(int, bytecode_and_metadata_size, 0) \ |
419 /* true if being profiled. Causes collection of extra compile info. */ \ | 419 /* true if being profiled. Causes collection of extra compile info. */ \ |
420 V(bool, is_profiling, false) \ | 420 V(bool, is_profiling, false) \ |
421 /* true if a trace is being formatted through Error.prepareStackTrace. */ \ | 421 /* true if a trace is being formatted through Error.prepareStackTrace. */ \ |
422 V(bool, formatting_stack_trace, false) \ | 422 V(bool, formatting_stack_trace, false) \ |
| 423 /* Perform side effect checks on function call and API callbacks. */ \ |
| 424 V(bool, needs_side_effect_check, false) \ |
423 ISOLATE_INIT_SIMULATOR_LIST(V) | 425 ISOLATE_INIT_SIMULATOR_LIST(V) |
424 | 426 |
425 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ | 427 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ |
426 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ | 428 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ |
427 inline type name() const { return thread_local_top_.name##_; } | 429 inline type name() const { return thread_local_top_.name##_; } |
428 | 430 |
429 #define THREAD_LOCAL_TOP_ADDRESS(type, name) \ | 431 #define THREAD_LOCAL_TOP_ADDRESS(type, name) \ |
430 type* name##_address() { return &thread_local_top_.name##_; } | 432 type* name##_address() { return &thread_local_top_.name##_; } |
431 | 433 |
432 | 434 |
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1695 | 1697 |
1696 EmbeddedVector<char, 128> filename_; | 1698 EmbeddedVector<char, 128> filename_; |
1697 FILE* file_; | 1699 FILE* file_; |
1698 int scope_depth_; | 1700 int scope_depth_; |
1699 }; | 1701 }; |
1700 | 1702 |
1701 } // namespace internal | 1703 } // namespace internal |
1702 } // namespace v8 | 1704 } // namespace v8 |
1703 | 1705 |
1704 #endif // V8_ISOLATE_H_ | 1706 #endif // V8_ISOLATE_H_ |
OLD | NEW |