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

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

Issue 2247353005: [builtins] support exception handling in TFJ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move impl to CodeAssembler, refactor api a bit 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
« no previous file with comments | « no previous file | src/compiler/code-assembler.cc » ('j') | src/compiler/code-assembler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/code-assembler.h
diff --git a/src/compiler/code-assembler.h b/src/compiler/code-assembler.h
index a8e27ec9292dc2a6e3eecabb75e1d0c81193fd66..ec2fd8ba8c238104d387ccc5e8ea6d5a088f6855 100644
--- a/src/compiler/code-assembler.h
+++ b/src/compiler/code-assembler.h
@@ -409,6 +409,11 @@ class CodeAssembler {
// Branching helpers.
void BranchIf(Node* condition, Label* if_true, Label* if_false);
+ void BranchIfSuccess(Node* node, Label* if_success, Label* if_exception,
+ Variable* exception_var = nullptr);
+ void GotoIfException(Node* node, Label* if_exception,
+ Variable* exception_var = nullptr);
+
#define BRANCH_HELPER(name) \
void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \
BranchIf(name(a, b), if_true, if_false); \
« no previous file with comments | « no previous file | src/compiler/code-assembler.cc » ('j') | src/compiler/code-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698