summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/bytecode/SpecialPointer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/bytecode/SpecialPointer.h')
-rw-r--r--Source/JavaScriptCore/bytecode/SpecialPointer.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/JavaScriptCore/bytecode/SpecialPointer.h b/Source/JavaScriptCore/bytecode/SpecialPointer.h
index c18a6e904..21329ec43 100644
--- a/Source/JavaScriptCore/bytecode/SpecialPointer.h
+++ b/Source/JavaScriptCore/bytecode/SpecialPointer.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SpecialPointer_h
-#define SpecialPointer_h
+#pragma once
namespace JSC {
@@ -41,6 +40,11 @@ enum Pointer {
};
} // namespace Special
+enum class LinkTimeConstant {
+ ThrowTypeErrorFunction,
+};
+const unsigned LinkTimeConstantCount = 1;
+
inline bool pointerIsFunction(Special::Pointer pointer)
{
ASSERT_UNUSED(pointer, pointer < Special::TableSize);
@@ -57,6 +61,3 @@ void* actualPointerFor(JSGlobalObject*, Special::Pointer);
void* actualPointerFor(CodeBlock*, Special::Pointer);
} // namespace JSC
-
-#endif // SpecialPointer_h
-