Index: runtime/vm/bootstrap_nocore.cc |
diff --git a/runtime/vm/bootstrap_nocore.cc b/runtime/vm/bootstrap_nocore.cc |
index a188ae5ddbf086389443676e5cbed01b23da2ebf..c1681877b66be5dbc8644850acaf022d095f7d41 100644 |
--- a/runtime/vm/bootstrap_nocore.cc |
+++ b/runtime/vm/bootstrap_nocore.cc |
@@ -54,13 +54,15 @@ 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) |