| Index: src/string-search.h
|
| diff --git a/src/string-search.h b/src/string-search.h
|
| index 1223db0f98347c72a274973d87f0cdd6d8fab755..f5405833ffbb16d9e62520e73b039e1ab83b3c32 100644
|
| --- a/src/string-search.h
|
| +++ b/src/string-search.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -242,9 +242,9 @@ int StringSearch<PatternChar, SubjectChar>::SingleCharSearch(
|
|
|
|
|
| template <typename PatternChar, typename SubjectChar>
|
| -static inline bool CharCompare(const PatternChar* pattern,
|
| - const SubjectChar* subject,
|
| - int length) {
|
| +inline bool CharCompare(const PatternChar* pattern,
|
| + const SubjectChar* subject,
|
| + int length) {
|
| ASSERT(length > 0);
|
| int pos = 0;
|
| do {
|
| @@ -555,10 +555,10 @@ int StringSearch<PatternChar, SubjectChar>::InitialSearch(
|
| // object should be constructed once and the Search function then called
|
| // for each search.
|
| template <typename SubjectChar, typename PatternChar>
|
| -static int SearchString(Isolate* isolate,
|
| - Vector<const SubjectChar> subject,
|
| - Vector<const PatternChar> pattern,
|
| - int start_index) {
|
| +int SearchString(Isolate* isolate,
|
| + Vector<const SubjectChar> subject,
|
| + Vector<const PatternChar> pattern,
|
| + int start_index) {
|
| StringSearch<PatternChar, SubjectChar> search(isolate, pattern);
|
| return search.Search(subject, start_index);
|
| }
|
|
|