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

Unified Diff: src/compiler/node-matchers.h

Issue 2474013002: [turbofan] CheckBounds cannot be used within asm.js. (Closed)
Patch Set: Created 4 years, 1 month 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 | « src/compiler/js-native-context-specialization.cc ('k') | test/mjsunit/regress/regress-crbug-661949.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/node-matchers.h
diff --git a/src/compiler/node-matchers.h b/src/compiler/node-matchers.h
index 2d8ec0005d596d5f8506c7c5ed71a7b0423f3522..c317fdd5e7b5edd17f0fc0be056062034d47f6e1 100644
--- a/src/compiler/node-matchers.h
+++ b/src/compiler/node-matchers.h
@@ -167,6 +167,9 @@ struct FloatMatcher final : public ValueMatcher<T, kOpcode> {
bool IsNormal() const {
return this->HasValue() && std::isnormal(this->Value());
}
+ bool IsInteger() const {
+ return this->HasValue() && std::nearbyint(this->Value()) == this->Value();
+ }
bool IsPositiveOrNegativePowerOf2() const {
if (!this->HasValue() || (this->Value() == 0.0)) {
return false;
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | test/mjsunit/regress/regress-crbug-661949.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698