From cdfcd42ee87938c8a6231233dae17f02779d89a9 Mon Sep 17 00:00:00 2001 From: "oliver@apple.com" Date: Mon, 8 Dec 2008 04:16:47 +0000 Subject: [PATCH] Fix non-WREC builds git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39089 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- JavaScriptCore/ChangeLog | 9 +++++++++ JavaScriptCore/runtime/RegExp.cpp | 3 +++ 2 files changed, 12 insertions(+) diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog index f0ade8c..6fe3c2d 100644 --- a/JavaScriptCore/ChangeLog +++ b/JavaScriptCore/ChangeLog @@ -1,5 +1,14 @@ 2008-12-07 Oliver Hunt + Reviewed by NOBODY (Buildfix). + + Fix non-WREC builds + + * runtime/RegExp.cpp: + (JSC::RegExp::RegExp): + +2008-12-07 Oliver Hunt + Reviewed by NOBODY (Build fix). Put ENABLE(ASSEMBLER) guards around use of ExecutableAllocator in global data diff --git a/JavaScriptCore/runtime/RegExp.cpp b/JavaScriptCore/runtime/RegExp.cpp index f952eae..5556ab5 100644 --- a/JavaScriptCore/runtime/RegExp.cpp +++ b/JavaScriptCore/runtime/RegExp.cpp @@ -44,6 +44,7 @@ inline RegExp::RegExp(JSGlobalData* globalData, const UString& pattern) , m_constructionError(0) , m_numSubpatterns(0) { + UNUSED_PARAM(globalData); #if ENABLE(WREC) m_wrecFunction = Generator::compileRegExp(globalData, pattern, &m_numSubpatterns, &m_constructionError, m_executablePool); if (m_wrecFunction) @@ -67,6 +68,8 @@ inline RegExp::RegExp(JSGlobalData* globalData, const UString& pattern, const US , m_constructionError(0) , m_numSubpatterns(0) { + UNUSED_PARAM(globalData); + // NOTE: The global flag is handled on a case-by-case basis by functions like // String::match and RegExpObject::match. if (flags.find('g') != -1) -- 1.8.3.1