Index: runtime/vm/object_arm64_test.cc |
diff --git a/runtime/vm/object_arm64_test.cc b/runtime/vm/object_arm64_test.cc |
index 9383cc2837b82142de610394c0a25ce19f1f836c..4349bb9ba75d1d8147b95cc87cfb8189749d09db 100644 |
--- a/runtime/vm/object_arm64_test.cc |
+++ b/runtime/vm/object_arm64_test.cc |
@@ -35,12 +35,9 @@ void GenerateIncrement(Assembler* assembler) { |
void GenerateEmbedStringInCode(Assembler* assembler, const char* str) { |
const String& string_object = |
String::ZoneHandle(String::New(str, Heap::kOld)); |
- __ mov(SP, CSP); |
- __ TagAndPushPP(); // Save caller's pool pointer and load a new one here. |
- __ LoadPoolPointer(); |
+ __ EnterStubFrame(); |
__ LoadObject(R0, string_object); |
- __ set_constant_pool_allowed(false); |
- __ PopAndUntagPP(); // Restore caller's pool pointer. |
+ __ LeaveStubFrame(); |
__ ret(); |
} |