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

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

Issue 2624753002: [ignition] Use Smis directly for type feedback (Closed)
Patch Set: Created 3 years, 11 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/code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index be527fa8d30bee06dd8050de27e78315b28853d9..99e4412d3f719afd9433f8cc7698278b1706ea36 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -233,6 +233,17 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
Node* SelectBooleanConstant(Node* condition);
Node* SelectTaggedConstant(Node* condition, Node* true_value,
Node* false_value);
+ Node* SelectSmiConstant(Node* condition, Smi* true_value, Smi* false_value);
rmcilroy 2017/01/10 15:05:50 nit - I would prefer just to have the Smi version
Leszek Swirski 2017/01/11 10:10:03 I'd rather keep this as is, for consistency with S
+ Node* SelectSmiConstant(Node* condition, int true_value, Smi* false_value) {
+ return SelectSmiConstant(condition, Smi::FromInt(true_value), false_value);
+ }
+ Node* SelectSmiConstant(Node* condition, Smi* true_value, int false_value) {
+ return SelectSmiConstant(condition, true_value, Smi::FromInt(false_value));
+ }
+ Node* SelectSmiConstant(Node* condition, int true_value, int false_value) {
+ return SelectSmiConstant(condition, Smi::FromInt(true_value),
+ Smi::FromInt(false_value));
+ }
Node* TruncateWordToWord32(Node* value);
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698