mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Fixed CASE_EXITs being limited to about 4 entries (bug 533521, r=gal).
This commit is contained in:
parent
6164bfbacb
commit
d12dfe06f1
@ -5910,7 +5910,10 @@ AttemptToExtendTree(JSContext* cx, VMSideExit* anchor, VMSideExit* exitedFrom, j
|
||||
"trying to attach another branch to the tree (hits = %d)\n", c->hits());
|
||||
|
||||
int32_t& hits = c->hits();
|
||||
if (outer || (hits++ >= HOTEXIT && hits <= HOTEXIT+MAXEXIT)) {
|
||||
int32_t maxHits = HOTEXIT + MAXEXIT;
|
||||
if (anchor->exitType == CASE_EXIT)
|
||||
maxHits *= anchor->switchInfo->count;
|
||||
if (outer || (hits++ >= HOTEXIT && hits <= maxHits)) {
|
||||
/* start tracing secondary trace from this point */
|
||||
unsigned stackSlots;
|
||||
unsigned ngslots;
|
||||
|
Loading…
Reference in New Issue
Block a user