Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: src/string.js

Issue 1267493006: Remove JSFunctionResultCache. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/string.js
diff --git a/src/string.js b/src/string.js
index 322e5ae6d8a8d645c46dfbe74d1d6b1f4d0ac2e5..b543a8e2a27b2848b6cd0e07a7ab8e4950b8eca3 100644
--- a/src/string.js
+++ b/src/string.js
@@ -546,9 +546,7 @@ function StringSearch(re) {
CHECK_OBJECT_COERCIBLE(this, "String.prototype.search");
var regexp;
- if (IS_STRING(re)) {
- regexp = %_GetFromCache(STRING_TO_REGEXP_CACHE_ID, re);
- } else if (IS_REGEXP(re)) {
+ if (IS_REGEXP(re)) {
regexp = re;
} else {
regexp = new GlobalRegExp(re);
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698