Index: runtime/vm/regexp_assembler_ir.cc |
diff --git a/runtime/vm/regexp_assembler_ir.cc b/runtime/vm/regexp_assembler_ir.cc |
index db30e92f9b7eb36765df662dd9f80207d5478dc2..2d4832910c5fedeb622855aff6bb439dafd5b609 100644 |
--- a/runtime/vm/regexp_assembler_ir.cc |
+++ b/runtime/vm/regexp_assembler_ir.cc |
@@ -360,8 +360,8 @@ ConstantInstr* IRRegExpMacroAssembler::Int64Constant(int64_t value) const { |
} |
ConstantInstr* IRRegExpMacroAssembler::Uint64Constant(uint64_t value) const { |
- ASSERT(value < static_cast<uint64_t>(kMaxInt64)); |
- return Int64Constant(static_cast<int64_t>(value)); |
+ return new (Z) ConstantInstr( |
+ Integer::ZoneHandle(Z, Integer::NewFromUint64(value, Heap::kOld))); |
} |
ConstantInstr* IRRegExpMacroAssembler::BoolConstant(bool value) const { |