Description[turbofan] Properly optimize immutable property loads.
When lowering a JSLoadNamed with an immutable own property of a
known constant JSObject, we can just constant fold the load during
native context specialization, similar to what Crankshaft does in
HOptimizedGraphBuilder::BuildLoadNamedField. This way we can also
constant-fold stuff like Math.LN2 and friends.
R=jarin@chromium.org
BUG=v8:5267
Committed: https://crrev.com/def77f4f420f7459d748ba487d739d74a78eb221
Cr-Commit-Position: refs/heads/master@{#39849}
Patch Set 1 #Patch Set 2 : Now with green bots. #Messages
Total messages: 19 (13 generated)
|