Home
last modified time | relevance | path

Searched refs:BranchHint (Results 1 – 20 of 20) sorted by relevance

/third_party/node/deps/v8/src/compiler/
Dcommon-operator.h43 enum class BranchHint : uint8_t { kNone, kTrue, kFalse }; enum
45 inline BranchHint NegateBranchHint(BranchHint hint) { in NegateBranchHint()
47 case BranchHint::kNone: in NegateBranchHint()
49 case BranchHint::kTrue: in NegateBranchHint()
50 return BranchHint::kFalse; in NegateBranchHint()
51 case BranchHint::kFalse: in NegateBranchHint()
52 return BranchHint::kTrue; in NegateBranchHint()
57 inline size_t hash_value(BranchHint hint) { return static_cast<size_t>(hint); } in hash_value()
59 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, BranchHint);
74 V8_EXPORT_PRIVATE BranchHint BranchHintOf(const Operator* const)
[all …]
Dgraph-assembler.h362 BranchHint hint, Vars...);
370 BranchHint hint, Vars...);
379 BranchHint hint, Vars...);
524 BranchHint hint, Vars...);
698 BranchHint hint = BranchHint::kNone; in Branch()
700 hint = if_false->IsDeferred() ? BranchHint::kTrue : BranchHint::kFalse; in Branch()
709 GraphAssemblerLabel<sizeof...(Vars)>* if_false, BranchHint hint, in BranchWithHint()
718 BranchHint hint, Vars... vars) { in BranchImpl()
747 BranchHint hint, Vars... vars) { in GotoIf()
759 BranchHint hint, Vars... vars) { in GotoIfNot()
[all …]
Draw-machine-assembler.cc446 BranchHint new_branch_hint; in MarkControlDeferred()
458 if (parameters.hint() != BranchHint::kFalse) { in MarkControlDeferred()
462 BranchHint::kFalse)); in MarkControlDeferred()
467 if (BranchHintOf(control_node->op()) != BranchHint::kFalse) { in MarkControlDeferred()
469 common()->IfDefault(BranchHint::kFalse)); in MarkControlDeferred()
474 BranchHint hint = BranchHintOf(branch->op()); in MarkControlDeferred()
475 if (hint == BranchHint::kTrue) { in MarkControlDeferred()
481 new_branch_hint = BranchHint::kFalse; in MarkControlDeferred()
487 BranchHint hint = BranchHintOf(branch->op()); in MarkControlDeferred()
488 if (hint == BranchHint::kFalse) { in MarkControlDeferred()
[all …]
Dcommon-operator.cc19 std::ostream& operator<<(std::ostream& os, BranchHint hint) { in operator <<()
21 case BranchHint::kNone: in operator <<()
23 case BranchHint::kTrue: in operator <<()
25 case BranchHint::kFalse: in operator <<()
50 BranchHint BranchHintOf(const Operator* const op) { in BranchHintOf()
56 return OpParameter<BranchHint>(op); in BranchHintOf()
635 template <BranchHint hint>
636 struct BranchOperator final : public Operator1<BranchHint> {
638 : Operator1<BranchHint>( // -- in BranchOperator()
645 BranchOperator<BranchHint::k##Hint> kBranch##Hint##Operator;
[all …]
Ddiamond.h26 BranchHint hint = BranchHint::kNone) {
Dcontrol-flow-optimizer.cc77 if (BranchHintOf(branch->op()) != BranchHint::kNone) return false; in TryBuildSwitch()
101 if (BranchHintOf(branch1->op()) != BranchHint::kNone) break; in TryBuildSwitch()
Dscheduler.cc469 BranchHint hint_from_profile = BranchHint::kNone; in ConnectBranch()
481 hint_from_profile = BranchHint::kTrue; in ConnectBranch()
484 hint_from_profile = BranchHint::kFalse; in ConnectBranch()
490 case BranchHint::kNone: in ConnectBranch()
492 case BranchHint::kNone: in ConnectBranch()
494 case BranchHint::kTrue: in ConnectBranch()
497 case BranchHint::kFalse: in ConnectBranch()
502 case BranchHint::kTrue: in ConnectBranch()
505 case BranchHint::kFalse: in ConnectBranch()
510 if (hint_from_profile != BranchHint::kNone && in ConnectBranch()
[all …]
Dwasm-compiler.cc226 BranchHint hint) { in Branch()
1428 return gasm_->Branch(cond, true_node, false_node, BranchHint::kNone); in BranchNoHint()
1433 return gasm_->Branch(cond, true_node, false_node, BranchHint::kFalse); in BranchExpectFalse()
1438 return gasm_->Branch(cond, true_node, false_node, BranchHint::kTrue); in BranchExpectTrue()
2186 Diamond tl_d(graph(), mcgraph()->common(), test, BranchHint::kFalse); in BuildIntConvertFloat()
2189 Diamond nan_d(graph(), mcgraph()->common(), nan_test, BranchHint::kFalse); in BuildIntConvertFloat()
2192 Diamond sat_d(graph(), mcgraph()->common(), neg_test, BranchHint::kNone); in BuildIntConvertFloat()
2441 Diamond tl_d(graph(), mcgraph()->common(), test, BranchHint::kFalse); in BuildCcallConvertFloat()
2444 Diamond nan_d(graph(), mcgraph()->common(), nan_test, BranchHint::kFalse); in BuildCcallConvertFloat()
2447 Diamond sat_d(graph(), mcgraph()->common(), neg_test, BranchHint::kNone); in BuildCcallConvertFloat()
[all …]
Djs-call-reducer.cc126 DCHECK_EQ(hint_, BranchHint::kNone); in ExpectTrue()
127 hint_ = BranchHint::kTrue; in ExpectTrue()
131 DCHECK_EQ(hint_, BranchHint::kNone); in ExpectFalse()
132 hint_ = BranchHint::kFalse; in ExpectFalse()
157 auto if_true = (hint_ == BranchHint::kFalse) ? gasm_->MakeDeferredLabel() in ~IfBuilder0()
159 auto if_false = (hint_ == BranchHint::kTrue) ? gasm_->MakeDeferredLabel() in ~IfBuilder0()
184 BranchHint hint_ = BranchHint::kNone;
201 DCHECK_EQ(hint_, BranchHint::kNone); in ExpectTrue()
202 hint_ = BranchHint::kTrue; in ExpectTrue()
207 DCHECK_EQ(hint_, BranchHint::kNone); in ExpectFalse()
[all …]
Dgraph-assembler.cc560 BranchHint hint = BranchHint::kNone; in BranchWithCriticalSafetyCheck()
562 hint = if_false->IsDeferred() ? BranchHint::kTrue : BranchHint::kFalse; in BranchWithCriticalSafetyCheck()
Djs-typed-lowering.cc617 graph()->NewNode(common()->Branch(BranchHint::kTrue), check, control); in ReduceJSAdd()
1124 graph()->NewNode(common()->Branch(BranchHint::kTrue), check, control); in ReduceJSToObject()
1207 graph()->NewNode(common()->Branch(BranchHint::kFalse), check0, control); in ReduceJSHasInPrototypeChain()
1239 graph()->NewNode(common()->Branch(BranchHint::kFalse), check1, control); in ReduceJSHasInPrototypeChain()
1252 graph()->NewNode(common()->Branch(BranchHint::kTrue), check10, if_true1); in ReduceJSHasInPrototypeChain()
1893 graph()->NewNode(common()->Branch(BranchHint::kTrue), check, control); in ReduceJSForInNext()
1998 graph()->NewNode(common()->Branch(BranchHint::kTrue), check, control); in ReduceJSForInPrepare()
2243 graph()->NewNode(common()->Branch(BranchHint::kFalse), check, control); in ReduceObjectIsArray()
2277 graph()->NewNode(common()->Branch(BranchHint::kFalse), check, control); in ReduceObjectIsArray()
Dbytecode-graph-builder.cc132 Node* NewBranch(Node* condition, BranchHint hint = BranchHint::kNone) { in NewBranch()
2787 NewBranch(condition, BranchHint::kFalse); in BuildHoleCheckAndThrow()
2843 NewBranch(check_is_constructor, BranchHint::kTrue); in VisitThrowIfNotSuperConstructor()
3946 NewBranch(condition, BranchHint::kNone); in BuildJumpIf()
3956 NewBranch(condition, BranchHint::kNone); in BuildJumpIfNot()
3980 NewBranch(environment()->LookupAccumulator(), BranchHint::kNone); in BuildJumpIfFalse()
3992 NewBranch(environment()->LookupAccumulator(), BranchHint::kNone); in BuildJumpIfTrue()
Dwasm-compiler.h47 enum class BranchHint : uint8_t;
714 using BranchBuilder = std::function<void(Node*, BranchHint)>;
Dsimplified-lowering.cc4399 graph()->NewNode(common()->Branch(BranchHint::kTrue), check0, control); in DoJSToNumberOrNumericTruncatesToFloat64()
4501 graph()->NewNode(common()->Branch(BranchHint::kTrue), check0, control); in DoJSToNumberOrNumericTruncatesToWord32()
4664 Node* branch0 = graph()->NewNode(common()->Branch(BranchHint::kTrue), check0, in Int32Div()
4741 Node* branch0 = graph()->NewNode(common()->Branch(BranchHint::kTrue), check0, in Int32Mod()
4759 Node* branch2 = graph()->NewNode(common()->Branch(BranchHint::kFalse), in Int32Mod()
4784 Node* branch1 = graph()->NewNode(common()->Branch(BranchHint::kTrue), in Int32Mod()
4830 Diamond d(graph(), common(), check, BranchHint::kFalse); in Uint32Div()
4867 Node* branch0 = graph()->NewNode(common()->Branch(BranchHint::kFalse), check0, in Uint32Mod()
Djs-native-context-specialization.cc2764 Node* branch = graph()->NewNode(common()->Branch(BranchHint::kTrue), in BuildElementAccess()
2836 Node* branch = graph()->NewNode(common()->Branch(BranchHint::kTrue), in BuildElementAccess()
2976 Node* branch = graph()->NewNode(common()->Branch(BranchHint::kTrue), in BuildElementAccess()
3261 graph()->NewNode(common()->Branch(BranchHint::kTrue), check, *control); in BuildIndexedStringLoad()
Dmachine-operator-reducer.cc201 BranchHint::kFalse); in Float64PowHalf()
1213 BranchHint::kFalse); in ReduceInt32Mod()
Djs-generic-lowering.cc1204 graph()->NewNode(common()->Branch(BranchHint::kTrue), check, control); in LowerJSStackCheck()
Deffect-control-linearizer.cc544 BranchHint const hint = BranchHintOf(branch->op()); in TryCloneBranch()
3995 &return_result, BranchHint::kFalse, first_code_unit); in LowerStringCodePointAt()
/third_party/vixl/src/aarch32/
Dconstants-aarch32.h101 enum BranchHint { kNear, kFar, kBranchWithoutHint }; enum
Dmacro-assembler-aarch32.h1464 void B(Condition cond, Label* label, BranchHint hint = kBranchWithoutHint) { in Assembler()
1483 void B(Label* label, BranchHint hint = kBranchWithoutHint) { in Assembler()