Index: runtime/vm/stub_code_x64.cc |
=================================================================== |
--- runtime/vm/stub_code_x64.cc (revision 44707) |
+++ runtime/vm/stub_code_x64.cc (working copy) |
@@ -483,7 +483,8 @@ |
// Frame is fully rewritten at this point and it is safe to perform a GC. |
// Materialize any objects that were deferred by FillFrame because they |
// require allocation. |
- __ EnterStubFrame(); |
+ // Enter stub frame with loading PP. The caller's PP is not materialized yet. |
+ __ EnterStubFrame(true); |
if (preserve_result) { |
__ pushq(Immediate(0)); // Workaround for dropped stack slot during GC. |
__ pushq(RBX); // Preserve result, it will be GC-d here. |