diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-12-05 16:29:01 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-12-05 16:29:01 -0800 |
commit | 21d081fd7f83aa168ea0bef0870c7f1fed410a63 (patch) | |
tree | 23a04eef49364b1cbee204a87fd0904be2430c2e /deps/v8/src/string-search.h | |
parent | e90623edc2befb06602ff8c3e01809ba0a21d593 (diff) | |
download | android-node-v8-21d081fd7f83aa168ea0bef0870c7f1fed410a63.tar.gz android-node-v8-21d081fd7f83aa168ea0bef0870c7f1fed410a63.tar.bz2 android-node-v8-21d081fd7f83aa168ea0bef0870c7f1fed410a63.zip |
Upgrade V8 to 3.7.12
Diffstat (limited to 'deps/v8/src/string-search.h')
-rw-r--r-- | deps/v8/src/string-search.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/deps/v8/src/string-search.h b/deps/v8/src/string-search.h index 1223db0f98..f5405833ff 100644 --- a/deps/v8/src/string-search.h +++ b/deps/v8/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); } |