Description[turbofan] Decouple inlining and native context specialization.
Retrieve the native context/global object from the Node being
specialized in the JSNativeContextSpecialization and the
JSGlobalObjectSpecialization classes. For this we introduce two
new methods NodeProperties::GetSpecializationNativeContext and
NodeProperties::GetSpecializationGlobalObject, which walk up
the context chain and might in the end take the native context
from the outermost activation (if native context specialization
is enabled). This allows us to run the native context specialization
pass as part of the inlining phase without hacking some of that into
the JSInliner.
Also refactor the NodeProperties::GetSpecializationContext method
that was previously local to the JSContextSpecialization.
Also refactor two other oddities in JSNativeContextSpecialization.
R=jarin@chromium.org
BUG=v8:4470, v8:4493
LOG=n
Committed: https://crrev.com/9b14e5bb63857649417b8e2ef0c2c9c39be614c8
Cr-Commit-Position: refs/heads/master@{#32076}
Patch Set 1 #Patch Set 2 : Beautify comment. #Patch Set 3 : Also refactor some oddities in JSNativeContextSpecialization. #
Total comments: 2
Patch Set 4 : Remove misleading comment about MaybeHandle. #
Messages
Total messages: 12 (3 generated)
|