| Index: runtime/vm/object.h
|
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h
|
| index d92c3fe83673f62fcb616a64fb490d3606bbc95b..d4329c6bd38bd2168960d2176ba2aeb1cc71dcf4 100644
|
| --- a/runtime/vm/object.h
|
| +++ b/runtime/vm/object.h
|
| @@ -3248,10 +3248,12 @@ 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);
|
| + // Return the most compact presentation of an integer.
|
| + RawInteger* AsInteger() const;
|
| + // Return an integer in the form of a RawBigint.
|
| + RawBigint* AsBigint() const;
|
| +
|
| + RawInteger* BinaryOp(Token::Kind operation, const Integer& other) const;
|
|
|
| OBJECT_IMPLEMENTATION(Integer, Number);
|
| friend class Class;
|
| @@ -3394,10 +3396,7 @@ 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);
|
| + RawBigint* BinaryOp(Token::Kind operation, const Bigint& other) const;
|
|
|
| private:
|
| Chunk GetChunkAt(intptr_t i) const {
|
|
|