summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/ConstantMode.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/ConstantMode.h')
-rw-r--r--Source/JavaScriptCore/runtime/ConstantMode.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/runtime/ConstantMode.h b/Source/JavaScriptCore/runtime/ConstantMode.h
index 389a074f9..fe73fd0d4 100644
--- a/Source/JavaScriptCore/runtime/ConstantMode.h
+++ b/Source/JavaScriptCore/runtime/ConstantMode.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,14 +23,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ConstantMode_h
-#define ConstantMode_h
+#pragma once
+
+#include <wtf/PrintStream.h>
namespace JSC {
enum ConstantMode { IsConstant, IsVariable };
+inline ConstantMode modeForIsConstant(bool isConstant)
+{
+ return isConstant ? IsConstant : IsVariable;
+}
+
} // namespace JSC
-#endif // ConstantMode_h
+namespace WTF {
+
+void printInternal(PrintStream&, JSC::ConstantMode);
+} // namespace WTF