Index: src/compiler/code-stub-assembler.cc |
diff --git a/src/compiler/code-stub-assembler.cc b/src/compiler/code-stub-assembler.cc |
index 1e8ba15637f5a710a9dd1825bb319969b9fcf596..23029613378c827951d0ed944840aa416e4fd6d2 100644 |
--- a/src/compiler/code-stub-assembler.cc |
+++ b/src/compiler/code-stub-assembler.cc |
@@ -464,6 +464,16 @@ Node* CodeStubAssembler::BitFieldDecode(Node* word32, uint32_t shift, |
raw_assembler_->Int32Constant(shift)); |
} |
+void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, |
+ Label* if_false) { |
+ Label if_condition_true(this), if_condition_false(this); |
+ Branch(condition, &if_condition_true, &if_condition_false); |
+ Bind(&if_condition_true); |
+ Goto(if_true); |
+ Bind(&if_condition_false); |
+ Goto(if_false); |
+} |
+ |
void CodeStubAssembler::BranchIfInt32LessThan(Node* a, Node* b, Label* if_true, |
Label* if_false) { |
Label if_lessthan(this), if_notlessthan(this); |