From 522e87abb212c8857f908e44bd5b5495807c4352 Mon Sep 17 00:00:00 2001 From: Igor Bukanov Date: Wed, 7 Jan 2009 18:44:50 +0100 Subject: [PATCH] Backed out changeset 763b96e81579 - I committed the wrong patch --- js/src/jstracer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 46a9995697a..68d3df34f1b 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -1062,14 +1062,14 @@ TraceRecorder::TraceRecorder(JSContext* cx, VMSideExit* _anchor, Fragment* _frag /* read into registers all values on the stack and all globals we know so far */ import(treeInfo, lirbuf->sp, ngslots, callDepth, globalTypeMap, stackTypeMap); +#if defined(JS_HAS_OPERATION_COUNT) && !JS_HAS_OPERATION_COUNT if (fragment == fragment->root) { - LIns* counter = lir->insLoadi(cx_ins, - offsetof(JSContext, operationCount)); - //LIns* updated = lir->ins2i(LIR_sub, counter, JSOW_SCRIPT_JUMP); - LIns* updated = lir->ins2i(LIR_sub, counter, 1); - lir->insStorei(updated, cx_ins, offsetof(JSContext, operationCount)); - guard(false, lir->ins2i(LIR_le, updated, 0), snapshot(TIMEOUT_EXIT)); + guard(false, + lir->ins_eq0(lir->insLoadi(cx_ins, + offsetof(JSContext, operationCount))), + snapshot(TIMEOUT_EXIT)); } +#endif /* If we are attached to a tree call guard, make sure the guard the inner tree exited from is what we expect it to be. */