DescriptionReturn this in Context::native_context if receiver is a native context.
Checking for native context is faster than checking for global object. Additionally it speeds up the case were it actually is the native context, while not slowing down the alternative case. The bootstrapper only needs to access the native context from the native context, so this avoids the expensive fallback.
BUG=
Committed: https://crrev.com/fdc5c1343cb5786fa0a21feefa34a472a64369f1
Cr-Commit-Position: refs/heads/master@{#29423}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Update comment #Messages
Total messages: 9 (3 generated)
|