Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / js / src / jit / KnownClass.h
blob862c0f1cb8cc3df0434ad7b0dae3d8a4ece70d07
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 jit_KnownClass_h
8 #define jit_KnownClass_h
10 #include "jspubtd.h"
12 namespace js {
13 namespace jit {
15 class MDefinition;
17 // Users of this enum often can't handle Proxy and Wrapper classes,
18 // as well as non-Function callables.
19 enum class KnownClass {
20 PlainObject,
21 Array,
22 Function,
23 RegExp,
24 ArrayIterator,
25 StringIterator,
26 RegExpStringIterator,
27 None
30 KnownClass GetObjectKnownClass(const MDefinition* def);
31 const JSClass* GetObjectKnownJSClass(const MDefinition* def);
33 } // namespace jit
34 } // namespace js
36 #endif // jit_KnownClass_h