From 5d7914a698d9278773bb11ce2a9de5ff719ea50b Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Wed, 13 Aug 2008 03:54:54 -0700 Subject: [PATCH] Blacklist a trace if we hit a global shape mismatch. This makes us suck less on date-format-tofte until we find a way to fix the property cache misses. --- js/src/jstracer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 0f5f863047b..0cb89ac753f 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -1689,6 +1689,7 @@ js_ExecuteTree(JSContext* cx, Fragment* f, uintN& inlineCallCount) AUDIT(globalShapeMismatchAtEntry); debug_only(printf("global shape mismatch, flushing tree.\n")); js_TrashTree(cx, f); + f->blacklist(); return NULL; }