[v8] disable ascii check once latin-1 is enabled in v8
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 11:34:31 +0000 (11:34 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 11:34:31 +0000 (11:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=108805

Patch by Dan Carney <dcarney@google.com> on 2013-02-04
Reviewed by Kentaro Hara.

No new tests. No change in functionality.

* bindings/v8/V8ValueCache.cpp:
(WebCore::makeExternalString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141752 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/V8ValueCache.cpp

index 8e58754f667d53c5dda5441165735544fc6e4821..2afd21fc58381e25ce178086e0c34b59250c1f9c 100644 (file)
@@ -1,3 +1,15 @@
+2013-02-04  Dan Carney  <dcarney@google.com>
+
+        [v8] disable ascii check once latin-1 is enabled in v8
+        https://bugs.webkit.org/show_bug.cgi?id=108805
+
+        Reviewed by Kentaro Hara.
+
+        No new tests. No change in functionality.
+
+        * bindings/v8/V8ValueCache.cpp:
+        (WebCore::makeExternalString):
+
 2013-02-04  Pavel Feldman  <pfeldman@chromium.org>
 
         Web Inspector: make tabbed pane header a relayout boundary.
index cdddb19818ee050ebfd86d651dbd33ddbba57e9b..981487c244b407b6e4598e9ef2d55311a4c19308 100644 (file)
@@ -42,7 +42,11 @@ namespace WebCore {
 
 static v8::Local<v8::String> makeExternalString(const String& string)
 {
+#ifdef V8_ONE_BYTE_STRINGS_ENABLED
+    if (string.is8Bit()) {
+#else
     if (string.is8Bit() && string.containsOnlyASCII()) {
+#endif
         WebCoreStringResource8* stringResource = new WebCoreStringResource8(string);
         v8::Local<v8::String> newString = v8::String::NewExternal(stringResource);
         if (newString.IsEmpty())