Hi,
In advance, I apologize if my question is naive or stupid but I couldn't
find the answer simply (or figure out why it would be a wriong question).
There are "official" conformance tests [1] and "SpiderMonkey" also has
its own form of conformance and regression tests. I quote "SpiderMonkey"
(and "the" in the title), because I feel that this wording
oversimplifies the situation.
JavaScript code first runs in an interpreter where warmth measurements
are gathered. When code is warm, it's compiled* to more efficient
machine code. If hot, it's compiled* again to something even more efficient.
Both compilation steps (*) generate a new source code and this
transformation step may include bugs.
In essence, within SpiderMonkey, there are 3 JavaScript engines: the
interpreter, the "warm code" compiler and the "hot code" compiler.
(maybe 4 if you count the SpiderMonkey combination)
And I was wondering if conformance and regression tests were run against
all 3-4 engines (since each compilation step may introduce its own bugs)
or whether only the combination was tested.
I imagine that when I run [1], only the conformance of the interpreter
is tested, because no test really have time to become warm or hot (not
even the test harness since it's injected in a new iframe for each test
for good reasons).
David
[1] http://test262.ecmascript.org/#
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals