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/RegExpKey.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Source/JavaScriptCore/runtime/RegExpKey.h') diff --git a/Source/JavaScriptCore/runtime/RegExpKey.h b/Source/JavaScriptCore/runtime/RegExpKey.h index 58fa38725..57a3f359b 100644 --- a/Source/JavaScriptCore/runtime/RegExpKey.h +++ b/Source/JavaScriptCore/runtime/RegExpKey.h @@ -25,8 +25,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RegExpKey_h -#define RegExpKey_h +#pragma once #include #include @@ -38,7 +37,9 @@ enum RegExpFlags { FlagGlobal = 1, FlagIgnoreCase = 2, FlagMultiline = 4, - InvalidFlags = 8, + FlagSticky = 8, + FlagUnicode = 16, + InvalidFlags = 32, DeletedValueFlags = -1 }; @@ -62,9 +63,9 @@ struct RegExpKey { { } - RegExpKey(RegExpFlags flags, const PassRefPtr pattern) + RegExpKey(RegExpFlags flags, RefPtr&& pattern) : flagsValue(flags) - , pattern(pattern) + , pattern(WTFMove(pattern)) { } @@ -109,5 +110,3 @@ template<> struct HashTraits : GenericHashTraits static bool isDeletedValue(const JSC::RegExpKey& value) { return value.flagsValue == JSC::DeletedValueFlags; } }; } // namespace WTF - -#endif // RegExpKey_h -- cgit v1.2.1