From 1a69b03a702d047e8d158c737da567e14a64945a Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Tue, 29 Mar 2011 21:49:38 -0700 Subject: [PATCH] [INFER] Don't try to trigger lazy standard class initialization during inference, bug 642307. --- js/src/jsinfer.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/js/src/jsinfer.cpp b/js/src/jsinfer.cpp index 274eab87764..4d6c3002f65 100644 --- a/js/src/jsinfer.cpp +++ b/js/src/jsinfer.cpp @@ -2937,19 +2937,6 @@ AnalyzeBytecode(JSContext *cx, AnalyzeState &state, JSScript *script, uint32 off else id = GetAtomId(cx, script, pc, 0); - /* - * This might be a lazily loaded property of the global object, resolve it once - * inference finishes (inference code cannot reenter the VM). This is generally - * not needed if we ran the interpreter on this code first, but avoids - * recompilation if we are using JSOPTION_METHODJIT_ALWAYS. - */ - uint64 start = cx->compartment->types.currentTime(); - JSObject *obj; - JSProperty *prop; - js_LookupPropertyWithFlags(cx, script->global, id, - JSRESOLVE_QUALIFIED, &obj, &prop); - cx->compartment->types.analysisTime -= (cx->compartment->types.currentTime() - start); - /* Handle as a property access. */ PropertyAccess(cx, script, pc, script->getGlobalType(), false, &pushed[0], id);