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

Unified Diff: runtime/vm/object.h

Issue 564843002: Initial steps towards cleaning up integer arithmetic IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 7fcebdb0f57465048ce8f64e7cd51388ed40e82f..16abb50ee86cc31ed0f2ccb2c144926e02cdaaed 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -5145,6 +5145,9 @@ class Integer : public Number {
virtual double AsDoubleValue() const;
virtual int64_t AsInt64Value() const;
+ virtual int64_t AsTruncatedInt64Value() const {
+ return AsInt64Value();
+ }
virtual uint32_t AsTruncatedUint32Value() const;
virtual bool FitsIntoSmi() const;
@@ -5310,6 +5313,7 @@ class Bigint : public Integer {
virtual double AsDoubleValue() const;
virtual int64_t AsInt64Value() const;
+ virtual int64_t AsTruncatedInt64Value() const;
virtual uint32_t AsTruncatedUint32Value() const;
virtual int CompareWith(const Integer& other) const;

Powered by Google App Engine
This is Rietveld 408576698