aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/string-search.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-01-17 11:32:56 -0800
committerRyan Dahl <ry@tinyclouds.org>2011-01-17 11:32:56 -0800
commitcf2e4f44afbfb208c5976786c96ec963930323cc (patch)
tree7e9ddac16d51490f1428abb610afd02eda98aacf /deps/v8/src/string-search.h
parent082a4b6033df22a68518c58d320e86f688db7bda (diff)
downloadandroid-node-v8-cf2e4f44afbfb208c5976786c96ec963930323cc.tar.gz
android-node-v8-cf2e4f44afbfb208c5976786c96ec963930323cc.tar.bz2
android-node-v8-cf2e4f44afbfb208c5976786c96ec963930323cc.zip
Upgrade V8 to 3.0.8
Diffstat (limited to 'deps/v8/src/string-search.h')
-rw-r--r--deps/v8/src/string-search.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/deps/v8/src/string-search.h b/deps/v8/src/string-search.h
index eac84757ec..5de3c0951e 100644
--- a/deps/v8/src/string-search.h
+++ b/deps/v8/src/string-search.h
@@ -66,12 +66,7 @@ class StringSearchBase {
}
static inline bool IsAsciiString(Vector<const uc16> string) {
- for (int i = 0, n = string.length(); i < n; i++) {
- if (static_cast<unsigned>(string[i]) > String::kMaxAsciiCharCodeU) {
- return false;
- }
- }
- return true;
+ return String::IsAscii(string.start(), string.length());
}
// The following tables are shared by all searches.