Changeset 127191 in webkit for trunk/Source/JavaScriptCore/yarr
- Timestamp:
- Aug 30, 2012, 2:23:51 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore/yarr
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/yarr/YarrInterpreter.cpp
r112564 r127191 28 28 #include "YarrInterpreter.h" 29 29 30 #include "UString.h"31 30 #include "Yarr.h" 32 31 #include "YarrCanonicalizeUCS2.h" … … 34 33 #include <wtf/DataLog.h> 35 34 #include <wtf/text/CString.h> 35 #include <wtf/text/WTFString.h> 36 36 37 37 #ifndef NDEBUG … … 1935 1935 } 1936 1936 1937 unsigned interpret(BytecodePattern* bytecode, const UString& input, unsigned start, unsigned* output)1937 unsigned interpret(BytecodePattern* bytecode, const String& input, unsigned start, unsigned* output) 1938 1938 { 1939 1939 if (input.is8Bit()) -
trunk/Source/JavaScriptCore/yarr/YarrInterpreter.h
r112564 r127191 377 377 378 378 JS_EXPORT_PRIVATE PassOwnPtr<BytecodePattern> byteCompile(YarrPattern&, BumpPointerAllocator*); 379 JS_EXPORT_PRIVATE unsigned interpret(BytecodePattern*, const UString& input, unsigned start, unsigned* output);379 JS_EXPORT_PRIVATE unsigned interpret(BytecodePattern*, const String& input, unsigned start, unsigned* output); 380 380 unsigned interpret(BytecodePattern*, const LChar* input, unsigned length, unsigned start, unsigned* output); 381 381 unsigned interpret(BytecodePattern*, const UChar* input, unsigned length, unsigned start, unsigned* output); -
trunk/Source/JavaScriptCore/yarr/YarrJIT.cpp
r120786 r127191 40 40 template<YarrJITCompileMode compileMode> 41 41 class YarrGenerator : private MacroAssembler { 42 friend void jitCompile(JSGlobalData*, YarrCodeBlock& jitObject, const UString& pattern, unsigned& numSubpatterns, const char*& error, bool ignoreCase, bool multiline);42 friend void jitCompile(JSGlobalData*, YarrCodeBlock& jitObject, const String& pattern, unsigned& numSubpatterns, const char*& error, bool ignoreCase, bool multiline); 43 43 44 44 #if CPU(ARM) -
trunk/Source/JavaScriptCore/yarr/YarrJIT.h
r112454 r127191 32 32 #include "MacroAssemblerCodeRef.h" 33 33 #include "MatchResult.h" 34 #include "UString.h"35 34 #include "Yarr.h" 36 35 #include "YarrPattern.h" -
trunk/Source/JavaScriptCore/yarr/YarrParser.h
r108999 r127191 27 27 #define YarrParser_h 28 28 29 #include <runtime/UString.h>30 29 #include "Yarr.h" 31 30 #include <wtf/ASCIICType.h> 31 #include <wtf/text/WTFString.h> 32 32 #include <wtf/unicode/Unicode.h> 33 33 … … 48 48 private: 49 49 template<class FriendDelegate> 50 friend const char* parse(FriendDelegate& delegate, const UString& pattern, unsigned backReferenceLimit);50 friend const char* parse(FriendDelegate&, const String& pattern, unsigned backReferenceLimit); 51 51 52 52 enum ErrorCode { … … 229 229 }; 230 230 231 Parser(Delegate& delegate, const UString& pattern, unsigned backReferenceLimit)231 Parser(Delegate& delegate, const String& pattern, unsigned backReferenceLimit) 232 232 : m_delegate(delegate) 233 233 , m_backReferenceLimit(backReferenceLimit) … … 869 869 870 870 template<class Delegate> 871 const char* parse(Delegate& delegate, const UString& pattern, unsigned backReferenceLimit = quantifyInfinite)871 const char* parse(Delegate& delegate, const String& pattern, unsigned backReferenceLimit = quantifyInfinite) 872 872 { 873 873 if (pattern.is8Bit()) -
trunk/Source/JavaScriptCore/yarr/YarrPattern.cpp
r112152 r127191 821 821 }; 822 822 823 const char* YarrPattern::compile(const UString& patternString)823 const char* YarrPattern::compile(const String& patternString) 824 824 { 825 825 YarrPatternConstructor constructor(*this); … … 854 854 } 855 855 856 YarrPattern::YarrPattern(const UString& pattern, bool ignoreCase, bool multiline, const char** error)856 YarrPattern::YarrPattern(const String& pattern, bool ignoreCase, bool multiline, const char** error) 857 857 : m_ignoreCase(ignoreCase) 858 858 , m_multiline(multiline) -
trunk/Source/JavaScriptCore/yarr/YarrPattern.h
r104900 r127191 28 28 #define YarrPattern_h 29 29 30 #include <runtime/UString.h>31 30 #include <wtf/CheckedArithmetic.h> 32 31 #include <wtf/RefCounted.h> 33 32 #include <wtf/Vector.h> 33 #include <wtf/text/WTFString.h> 34 34 #include <wtf/unicode/Unicode.h> 35 35 … … 317 317 318 318 struct YarrPattern { 319 JS_EXPORT_PRIVATE YarrPattern(const UString& pattern, bool ignoreCase, bool multiline, const char** error);319 JS_EXPORT_PRIVATE YarrPattern(const String& pattern, bool ignoreCase, bool multiline, const char** error); 320 320 321 321 ~YarrPattern() … … 406 406 407 407 private: 408 const char* compile(const UString& patternString);408 const char* compile(const String& patternString); 409 409 410 410 CharacterClass* newlineCached; -
trunk/Source/JavaScriptCore/yarr/YarrSyntaxChecker.cpp
r95901 r127191 51 51 }; 52 52 53 const char* checkSyntax(const UString& pattern)53 const char* checkSyntax(const String& pattern) 54 54 { 55 55 SyntaxChecker syntaxChecker; -
trunk/Source/JavaScriptCore/yarr/YarrSyntaxChecker.h
r95901 r127191 27 27 #define YarrSyntaxChecker_h 28 28 29 #include < runtime/UString.h>29 #include <wtf/text/WTFString.h> 30 30 31 31 namespace JSC { namespace Yarr { 32 32 33 const char* checkSyntax(const UString& pattern);33 const char* checkSyntax(const String& pattern); 34 34 35 35 }} // JSC::YARR -
trunk/Source/JavaScriptCore/yarr/yarr.pri
r114042 r127191 11 11 $$PWD/YarrCanonicalizeUCS2.cpp 12 12 13 # For UString.h14 v8 {15 INCLUDEPATH += \16 $$PWD/.. \17 $$PWD/../runtime18 }
Note:
See TracChangeset
for help on using the changeset viewer.