Index: runtime/vm/bootstrap.cc |
diff --git a/runtime/vm/bootstrap.cc b/runtime/vm/bootstrap.cc |
index d90c7321eea087b51d8585725490b0e5b4118f63..f633cdbb1ce40b04213bfa923a2f0f7e738429c1 100644 |
--- a/runtime/vm/bootstrap.cc |
+++ b/runtime/vm/bootstrap.cc |
@@ -274,13 +274,15 @@ static void Finish(Thread* thread, bool from_kernel) { |
#if defined(DEBUG) |
// Verify that closure field offsets are identical in Dart and C++. |
const Array& fields = Array::Handle(zone, cls.fields()); |
- ASSERT(fields.Length() == 3); |
+ ASSERT(fields.Length() == 4); |
Field& field = Field::Handle(zone); |
field ^= fields.At(0); |
- ASSERT(field.Offset() == Closure::instantiator_offset()); |
+ ASSERT(field.Offset() == Closure::instantiator_type_arguments_offset()); |
field ^= fields.At(1); |
- ASSERT(field.Offset() == Closure::function_offset()); |
+ ASSERT(field.Offset() == Closure::function_type_arguments_offset()); |
field ^= fields.At(2); |
+ ASSERT(field.Offset() == Closure::function_offset()); |
+ field ^= fields.At(3); |
ASSERT(field.Offset() == Closure::context_offset()); |
#endif // defined(DEBUG) |