https://github.com/openjdk/jdk/blob/0aefe6f20ae719c9793c790d...
I'll give you that levels 1-3 use the same IR, but that says more about the generality of the C1 IR than JSC being more advanced for using different IRs IMO.
Again, not the same as what JSC does, and not nearly as aggressive. Most notably, there is no baseline jit. Also, C1 in any config compiles slower than DFG.
That really colors the conversation in a different way retroactively that I don't really appreciate.
It now looks like I'm berating you out of nowhere, when really you originally made an assertion and I'm just trying to get you to back it up.
Maybe it’s more advanced at collecting garbage or supporting threads, but it is not comparable in the field of type inference, because Azul’s VM and other JVMs do not do any of the kind of type inference described in this post. And no, invokedynamic is nothing like inline caching for JS - not even close. Most of this post is about what type inference for dynamic languages really looks like when you invest HotSpot-like efforts to that specific problem. Saying that Azul is more advanced at type inference is far off from the truth at a very fundamental level.
So I gave you snark. Being snarky is fun sometimes!
The “number of tiers” difference doesn’t seem quite substantive enough, I would say, although I’m definitely no expert.
It’s not the purpose of this post to enumerate differences to HotSpot, but it does show some cases where the two approaches are alike.
HotSpot has three in the sense that you get interpreter, client, then server.
Both VMs have additional execution engines available behind flags. JSC has a different interpreter (CLoop, based on LLInt but different) for some systems, so it’s like a “fifth tier” if you think of “tier” as just an available execution engine. I think of tier as a stage of optimization that you get adaptively, without having to specifically configure for it. I get that HotSpot can alternatively AOT or Graal, but those aren’t tiered with the rest to my knowledge (like there is no interpreter->client->server->graal config but if there was then that would be four tiers).