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

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

Issue 2550683003: [stubs] Cleanup usages of CSA::Select(). (Closed)
Patch Set: Created 4 years 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/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 2a1ddf05883d40803ae7e4c1d354f77d4d186ed5..304cb853f64d45243728e59e9b7af73410e0ca02 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -169,6 +169,18 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
void Assert(const NodeGenerator& condition_body, const char* string = nullptr,
const char* file = nullptr, int line = 0);
+ Node* Select(Node* condition, const NodeGenerator& true_body,
+ const NodeGenerator& false_body, MachineRepresentation rep);
+
+ Node* SelectConstant(Node* condition, Node* true_value, Node* false_value,
+ MachineRepresentation rep);
+
+ Node* SelectInt32Constant(Node* condition, int true_value, int false_value);
+ Node* SelectIntPtrConstant(Node* condition, int true_value, int false_value);
+ Node* SelectBooleanConstant(Node* condition);
+ Node* SelectTaggedConstant(Node* condition, Node* true_value,
+ Node* false_value);
+
// Check a value for smi-ness
Node* TaggedIsSmi(Node* a);
Node* TaggedIsNotSmi(Node* a);

Powered by Google App Engine
This is Rietveld 408576698