diff options
author | eric@webkit.org <eric@webkit.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2010-06-18 15:00:29 +0000 |
---|---|---|
committer | eric@webkit.org <eric@webkit.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2010-06-18 15:00:29 +0000 |
commit | e244f16587ea36a8141182b066ea6961944e8621 (patch) | |
tree | 884eac3679a458f3ddfb3a6427c4d0161dd6fed7 /third_party/WebKit/LayoutTests/fast/js/script-tests/parser-high-byte-character.js | |
parent | 006a232cc1ec447cb2a0ce5d6d5158a54bc84e8e (diff) | |
download | chromium_src-e244f16587ea36a8141182b066ea6961944e8621.zip chromium_src-e244f16587ea36a8141182b066ea6961944e8621.tar.gz chromium_src-e244f16587ea36a8141182b066ea6961944e8621.tar.bz2 |
2010-06-18 Tony Gentilcore <tonyg@chromium.org>
Reviewed by David Levin.
Persist V8's ScriptData to the memory cache.
https://bugs.webkit.org/show_bug.cgi?id=38661
When V8 ScriptData caching was originally submitted it causes crashes
in external scripts with high-byte characters. This new test crashes on
the original code, but now passes.
* fast/js/parser-high-byte-character-expected.txt: Added.
* fast/js/parser-high-byte-character.html: Added.
* fast/js/script-tests/parser-high-byte-character.js: Added.
(runTest):
2010-06-18 Tony Gentilcore <tonyg@chromium.org>
Reviewed by David Levin.
Persist V8's ScriptData to the memory cache.
https://bugs.webkit.org/show_bug.cgi?id=38661
This stores V8's ScriptData in the memory cache and also causes the
network platform layer to be notified of the available cacheable
metadata.
Chromium's morejs benchmark showed a ~7% improvement when this was
originally submitted (before it had to be rolled back).
Test: fast/js/parser-high-byte-character.html
* bindings/v8/ScriptSourceCode.h:
(WebCore::ScriptSourceCode::ScriptSourceCode):
(WebCore::ScriptSourceCode::cachedScript):
* bindings/v8/V8Proxy.cpp:
(WebCore::V8Proxy::compileScript):
(WebCore::V8Proxy::precompileScript):
(WebCore::V8Proxy::evaluate):
* bindings/v8/V8Proxy.h:
git-svn-id: svn://svn.chromium.org/blink/trunk@61405 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/js/script-tests/parser-high-byte-character.js')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/js/script-tests/parser-high-byte-character.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/js/script-tests/parser-high-byte-character.js b/third_party/WebKit/LayoutTests/fast/js/script-tests/parser-high-byte-character.js new file mode 100644 index 0000000..8f5b59b --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/js/script-tests/parser-high-byte-character.js @@ -0,0 +1,27 @@ +description(
+"This test checks that high-byte characters in comments do not crash or cause parser errors."
+);
+
+// Some high-byte characters: ��ѡ��ѡ���е��б���ѡ��
+function runTest(_a, throws)
+{
+ testPassed();
+}
+
+/*
+Over 1024 bytes to ensure precompilation caching is triggered.
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX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