From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/JavaScriptCore/runtime/ConstantMode.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'Source/JavaScriptCore/runtime/ConstantMode.h') 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 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 -- cgit v1.2.1