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

Unified Diff: runtime/vm/intermediate_language_arm.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/intermediate_language_arm.cc
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc
index eac606ce714260f3b8f260d0e50ad7980c88e1b1..2142327a9bbf363c2d4ecf142aa72f9aadd89ff9 100644
--- a/runtime/vm/intermediate_language_arm.cc
+++ b/runtime/vm/intermediate_language_arm.cc
@@ -2316,7 +2316,7 @@ static void InlineArrayAllocation(FlowGraphCompiler* compiler,
R0, // instance
R3, // end address
R6,
- R8);
+ R9);
// R0: new object start as a tagged pointer.
// R3: new object end address.
@@ -2333,7 +2333,7 @@ static void InlineArrayAllocation(FlowGraphCompiler* compiler,
// Initialize all array elements to raw_null.
// R0: new object start as a tagged pointer.
// R3: new object end address.
- // R8: iterator which initially points to the start of the variable
+ // R9: iterator which initially points to the start of the variable
// data area to be initialized.
// R6: null
if (num_elements > 0) {
@@ -2347,12 +2347,12 @@ static void InlineArrayAllocation(FlowGraphCompiler* compiler,
__ LoadImmediate(R7, 0x1);
#endif // DEBUG
}
- __ AddImmediate(R8, R0, sizeof(RawArray) - kHeapObjectTag);
+ __ AddImmediate(R9, R0, sizeof(RawArray) - kHeapObjectTag);
if (array_size < (kInlineArraySize * kWordSize)) {
- __ InitializeFieldsNoBarrierUnrolled(R0, R8, 0, num_elements * kWordSize,
+ __ InitializeFieldsNoBarrierUnrolled(R0, R9, 0, num_elements * kWordSize,
R6, R7);
} else {
- __ InitializeFieldsNoBarrier(R0, R8, R3, R6, R7);
+ __ InitializeFieldsNoBarrier(R0, R9, R3, R6, R7);
}
}
__ b(done);

Powered by Google App Engine
This is Rietveld 408576698