Index: runtime/vm/object.h |
diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
index 84573dd74838202957876db183d3513ade50aff2..b188d6cf8842254ba95e03f8703cb4f91cdc09dc 100644 |
--- a/runtime/vm/object.h |
+++ b/runtime/vm/object.h |
@@ -6465,6 +6465,11 @@ class Integer : public Number { |
// Returns 0, -1 or 1. |
virtual int CompareWith(const Integer& other) const; |
+ // Converts integer to hex string. |
+ // TODO(alexmarkov): this method can become non-virtual once Bigint class is |
+ // decoupled from Integer hierarchy. |
+ virtual const char* ToHexCString(Zone* zone) const; |
+ |
// Return the most compact presentation of an integer. |
RawInteger* AsValidInteger() const; |
@@ -6622,6 +6627,8 @@ class Bigint : public Integer { |
virtual int CompareWith(const Integer& other) const; |
+ virtual const char* ToHexCString(Zone* zone) const; |
+ |
virtual bool CheckAndCanonicalizeFields(Thread* thread, |
const char** error_str) const; |
@@ -6650,7 +6657,6 @@ class Bigint : public Integer { |
uint32_t DigitAt(intptr_t index) const; |
const char* ToDecCString(Zone* zone) const; |
- const char* ToHexCString(Zone* zone) const; |
static const intptr_t kBitsPerDigit = 32; // Same as _Bigint._DIGIT_BITS |
static const intptr_t kBytesPerDigit = 4; |