Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1572)

Unified Diff: runtime/vm/assembler_arm64_test.cc

Issue 1156593002: Cache current thread in a reserved register and use it in LoadIsolate (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address review comments. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/assembler_arm64_test.cc
diff --git a/runtime/vm/assembler_arm64_test.cc b/runtime/vm/assembler_arm64_test.cc
index a23abd34d9340136934abbe865f3e61832cab595..621c03c6e8faa9f539d21d6dcd32c99e9970b02b 100644
--- a/runtime/vm/assembler_arm64_test.cc
+++ b/runtime/vm/assembler_arm64_test.cc
@@ -3553,18 +3553,22 @@ ASSEMBLER_TEST_RUN(ReciprocalSqrt, test) {
// R0: context.
// R1: value.
// R2: growable array.
+// R3: current thread.
ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) {
__ SetupDartSP(kTestStackSpace);
__ TagAndPushPP();
__ LoadPoolPointer(PP);
+ __ Push(THR);
__ Push(CTX);
__ Push(LR);
__ mov(CTX, R0);
+ __ mov(THR, R3);
__ StoreIntoObject(R2,
FieldAddress(R2, GrowableObjectArray::data_offset()),
R1);
__ Pop(LR);
__ Pop(CTX);
+ __ Pop(THR);
__ PopAndUntagPP();
__ mov(CSP, SP);
__ ret();

Powered by Google App Engine
This is Rietveld 408576698