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 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 ~SealHandleScope(); | 950 ~SealHandleScope(); |
951 | 951 |
952 private: | 952 private: |
953 // Make it hard to create heap-allocated or illegal handle scopes by | 953 // Make it hard to create heap-allocated or illegal handle scopes by |
954 // disallowing certain operations. | 954 // disallowing certain operations. |
955 SealHandleScope(const SealHandleScope&); | 955 SealHandleScope(const SealHandleScope&); |
956 void operator=(const SealHandleScope&); | 956 void operator=(const SealHandleScope&); |
957 void* operator new(size_t size); | 957 void* operator new(size_t size); |
958 void operator delete(void*, size_t); | 958 void operator delete(void*, size_t); |
959 | 959 |
960 internal::Isolate* isolate_; | 960 internal::Isolate* const isolate_; |
961 internal::Object** prev_limit_; | 961 internal::Object** prev_limit_; |
962 int prev_sealed_level_; | 962 int prev_sealed_level_; |
963 }; | 963 }; |
964 | 964 |
965 | 965 |
966 // --- Special objects --- | 966 // --- Special objects --- |
967 | 967 |
968 | 968 |
969 /** | 969 /** |
970 * The superclass of values and API object templates. | 970 * The superclass of values and API object templates. |
(...skipping 4716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5687 /** | 5687 /** |
5688 * Do not run microtasks while this scope is active, even if microtasks are | 5688 * Do not run microtasks while this scope is active, even if microtasks are |
5689 * automatically executed otherwise. | 5689 * automatically executed otherwise. |
5690 */ | 5690 */ |
5691 class V8_EXPORT SuppressMicrotaskExecutionScope { | 5691 class V8_EXPORT SuppressMicrotaskExecutionScope { |
5692 public: | 5692 public: |
5693 explicit SuppressMicrotaskExecutionScope(Isolate* isolate); | 5693 explicit SuppressMicrotaskExecutionScope(Isolate* isolate); |
5694 ~SuppressMicrotaskExecutionScope(); | 5694 ~SuppressMicrotaskExecutionScope(); |
5695 | 5695 |
5696 private: | 5696 private: |
5697 internal::Isolate* isolate_; | 5697 internal::Isolate* const isolate_; |
5698 | 5698 |
5699 // Prevent copying of Scope objects. | 5699 // Prevent copying of Scope objects. |
5700 SuppressMicrotaskExecutionScope(const SuppressMicrotaskExecutionScope&); | 5700 SuppressMicrotaskExecutionScope(const SuppressMicrotaskExecutionScope&); |
5701 SuppressMicrotaskExecutionScope& operator=( | 5701 SuppressMicrotaskExecutionScope& operator=( |
5702 const SuppressMicrotaskExecutionScope&); | 5702 const SuppressMicrotaskExecutionScope&); |
5703 }; | 5703 }; |
5704 | 5704 |
5705 /** | 5705 /** |
5706 * Types of garbage collections that can be requested via | 5706 * Types of garbage collections that can be requested via |
5707 * RequestGarbageCollectionForTesting. | 5707 * RequestGarbageCollectionForTesting. |
(...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8966 */ | 8966 */ |
8967 | 8967 |
8968 | 8968 |
8969 } // namespace v8 | 8969 } // namespace v8 |
8970 | 8970 |
8971 | 8971 |
8972 #undef TYPE_CHECK | 8972 #undef TYPE_CHECK |
8973 | 8973 |
8974 | 8974 |
8975 #endif // INCLUDE_V8_H_ | 8975 #endif // INCLUDE_V8_H_ |
OLD | NEW |