Lines Matching defs:context
5 #include "src/compiler/js-context-specialization.h"
97 // Given a context {node} and the {distance} from that context to the target
98 // context (which we want to read from or store to), try to return a
99 // specialization context. If successful, update {distance} to whatever
100 // distance remains from the specialization context.
124 return MakeRef(broker, outer.context);
142 // First walk up the context chain in the graph as far as possible.
143 Node* context = NodeProperties::GetOuterContext(node, &depth);
146 GetSpecializationContext(broker(), context, &depth, outer());
148 // We do not have a concrete context object, so we can only partially reduce
149 // the load by folding-in the outer context node.
150 return SimplifyJSLoadContext(node, context, depth);
153 // Now walk up the concrete context chain for the remaining depth.
157 TRACE_BROKER_MISSING(broker(), "previous value for context " << concrete);
162 // We found the requested context object but since the context slot is
173 << " for context "
179 // Even though the context slot is immutable, the context might have escaped
191 // Success. The context load can be replaced with the constant.
204 // First walk up the context chain in the graph until we reduce the depth to 0
206 Node* context = NodeProperties::GetOuterContext(node, &depth);
209 GetSpecializationContext(broker(), context, &depth, outer());
211 // We do not have a concrete context object, so we can only partially reduce
212 // the load by folding-in the outer context node.
213 return SimplifyJSStoreContext(node, context, depth);
216 // Now walk up the concrete context chain for the remaining depth.
220 TRACE_BROKER_MISSING(broker(), "previous value for context " << concrete);
230 Node* context = NodeProperties::GetOuterContext(node, &depth);
241 switch (context->opcode()) {
252 MakeRefAssumeMemoryFence(broker, HeapConstantOf(context->op()));
260 if (maybe_context.To(&outer) && IsContextParameter(context)) {
261 return find_context(MakeRef(broker, outer.context));
277 ContextRef context = maybe_context.value();
278 base::Optional<ObjectRef> module = context.get(Context::EXTENSION_INDEX);