File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1394,6 +1394,20 @@ void StubCodeCompiler::GenerateSuspendStub(
1394
1394
__ Bind (&init_done);
1395
1395
__ Comment (" Copy frame to SuspendState" );
1396
1396
1397
+ #ifdef DEBUG
1398
+ {
1399
+ // Verify that SuspendState.frame_size == kFrameSize.
1400
+ Label okay;
1401
+ __ LoadFromOffset (
1402
+ kTemp ,
1403
+ FieldAddress (kSuspendState , target::SuspendState::frame_size_offset ()));
1404
+ __ CompareRegisters (kTemp , kFrameSize );
1405
+ __ BranchIf (EQUAL, &okay);
1406
+ __ Breakpoint ();
1407
+ __ Bind (&okay);
1408
+ }
1409
+ #endif
1410
+
1397
1411
__ LoadFromOffset (
1398
1412
kTemp , Address (FPREG, kSavedCallerPcSlotFromFp * target::kWordSize ));
1399
1413
__ StoreToOffset (
@@ -1412,6 +1426,8 @@ void StubCodeCompiler::GenerateSuspendStub(
1412
1426
1413
1427
#ifdef DEBUG
1414
1428
{
1429
+ // Verify that kSuspendState matches :suspend_state in the copied stack
1430
+ // frame.
1415
1431
Label okay;
1416
1432
__ LoadFromOffset (
1417
1433
kTemp ,
You can’t perform that action at this time.
0 commit comments