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.

This commit is contained in:
Andreas Gal 2008-08-13 03:54:54 -07:00
parent 2a60d7a27b
commit 5d7914a698

View File

@ -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;
}