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

Unified Diff: runtime/vm/object.h

Issue 10943007: Initial implementation of sparse conditional constant propagation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 a9344b37ed4794bd176a9c884a6e30986594374c..34feb9845afb0f7ef65c3f44486cc0d108ff7b99 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3245,6 +3245,11 @@ class Integer : public Number {
// Returns 0, -1 or 1.
virtual int CompareWith(const Integer& other) const;
+ static RawInteger* AsInteger(const Integer& value);
+ static RawInteger* BinaryOp(Token::Kind operation,
+ const Integer& left,
+ const Integer& right);
+
OBJECT_IMPLEMENTATION(Integer, Number);
friend class Class;
};
@@ -3386,6 +3391,11 @@ class Bigint : public Integer {
static RawBigint* New(const String& str, Heap::Space space = Heap::kNew);
static RawBigint* New(int64_t value, Heap::Space space = Heap::kNew);
+ static RawBigint* AsBigint(const Integer& value);
+ static RawBigint* BinaryOp(Token::Kind operation,
+ const Bigint& left,
+ const Bigint& right);
+
private:
Chunk GetChunkAt(intptr_t i) const {
return *ChunkAddr(i);

Powered by Google App Engine
This is Rietveld 408576698