Lines Matching refs:jsgraph
15 Node* TryGetConstant(JSGraph* jsgraph, Node* node) { in TryGetConstant() argument
21 result = jsgraph->NullConstant(); in TryGetConstant()
23 result = jsgraph->UndefinedConstant(); in TryGetConstant()
25 result = jsgraph->MinusZeroConstant(); in TryGetConstant()
27 result = jsgraph->NaNConstant(); in TryGetConstant()
29 result = jsgraph->TheHoleConstant(); in TryGetConstant()
31 result = jsgraph->Constant(type.AsHeapConstant()->Ref()); in TryGetConstant()
33 result = jsgraph->Constant(type.Min()); in TryGetConstant()
59 ConstantFoldingReducer::ConstantFoldingReducer(Editor* editor, JSGraph* jsgraph, in ConstantFoldingReducer() argument
61 : AdvancedReducer(editor), jsgraph_(jsgraph), broker_(broker) {} in ConstantFoldingReducer()
70 Node* constant = TryGetConstant(jsgraph(), node); in Reduce()
80 Node* fold_constant = jsgraph()->graph()->NewNode( in Reduce()
81 jsgraph()->common()->FoldConstant(), node, constant); in Reduce()