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