| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index c5faed86ee98228f863825674ed14900e357236c..42775308757f8bf7bd14446a07ef7569ba056387 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -18238,6 +18238,16 @@ RawInteger* Integer::AsValidInteger() const {
|
| return raw();
|
| }
|
|
|
| +const char* Integer::ToHexCString(Zone* zone) const {
|
| + ASSERT(IsSmi() || IsMint()); // Bigint has its own implementation.
|
| + int64_t value = AsInt64Value();
|
| + if (value < 0) {
|
| + return OS::SCreate(zone, "-0x%" PRIX64, static_cast<uint64_t>(-value));
|
| + } else {
|
| + return OS::SCreate(zone, "0x%" PRIX64, static_cast<uint64_t>(value));
|
| + }
|
| +}
|
| +
|
| RawInteger* Integer::ArithmeticOp(Token::Kind operation,
|
| const Integer& other,
|
| Heap::Space space) const {
|
|
|