Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: src/compiler/code-assembler.cc

Issue 2247353005: [builtins] support exception handling in TFJ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/compiler/code-assembler.cc
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc
index 6fd143b4dd9dd494e7e0485d9472896535c05e93..a8c695c716d4fb42a1ba84d16dfa7f49ff5e8aab 100644
--- a/src/compiler/code-assembler.cc
+++ b/src/compiler/code-assembler.cc
@@ -312,6 +312,11 @@ void CodeAssembler::BranchIf(Node* condition, Label* if_true, Label* if_false) {
Goto(if_false);
}
+void CodeAssembler::BranchIfException(Node* node, Label* if_exception) {
+ DCHECK(!node->op()->HasProperty(Operator::kNoThrow));
+ raw_assembler_->BranchIfException(node, if_exception->label_);
+}
+
Node* CodeAssembler::CallN(CallDescriptor* descriptor, Node* code_target,
Node** args) {
CallPrologue();

Powered by Google App Engine
This is Rietveld 408576698