[SM91] Update to Spidermonkey 91.1.3 APIs
[0ad.git] / libraries / source / spidermonkey / include-win32-debug / js / friend / PerformanceHint.h
blob73fffa714b7ef3e2ec6d526e894f9cab6f7607ea
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: set ts=8 sts=2 et sw=2 tw=80:
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef js_friend_PerformanceHint_h
8 #define js_friend_PerformanceHint_h
10 namespace js {
11 namespace gc {
13 // API to let the DOM tell us whether we're currently in pageload, so we can
14 // change the GC triggers to discourage collection of the atoms zone.
16 // This is a temporary measure until parsing is changed to not allocate GC
17 // things off the main thread.
19 enum class PerformanceHint { Normal, InPageLoad };
21 extern JS_PUBLIC_API void SetPerformanceHint(JSContext* cx,
22 PerformanceHint hint);
24 } /* namespace gc */
25 } /* namespace js */
27 #endif // js_friend_PerformanceHint_h