Reviewers: Lasse Reichstein, Description: Spolling.
Please review this at http://codereview.chromium.org/42327 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/runtime.cc Index: src/runtime.cc =================================================================== --- src/runtime.cc (revision 1522) +++ src/runtime.cc (working copy) @@ -1779,10 +1779,10 @@ // Uses only the bad-shift table of Boyer-Moore and only uses it // for the character compared to the last character of the needle. template <typename schar, typename pchar> -static int BoyerMooreHorsepool(Vector<const schar> subject, - Vector<const pchar> pattern, - int start_index, - bool* complete) { +static int BoyerMooreHorspool(Vector<const schar> subject, + Vector<const pchar> pattern, + int start_index, + bool* complete) { int n = subject.length(); int m = pattern.length(); // Only preprocess at most kBMMaxShift last characters of pattern. @@ -1982,7 +1982,7 @@ bool complete; int idx = SimpleIndexOf(sub, pat, start_index, &complete); if (complete) return idx; - idx = BoyerMooreHorsepool(sub, pat, idx, &complete); + idx = BoyerMooreHorspool(sub, pat, idx, &complete); if (complete) return idx; return BoyerMooreIndexOf(sub, pat, idx); } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
