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

Unified Diff: runtime/vm/flow_graph_compiler_arm64.cc

Issue 2874763003: Add AddImmediate(reg, int) to ARM64 assembler (Closed)
Patch Set: Fix bug Created 3 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
« no previous file with comments | « runtime/vm/assembler_arm64_test.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_arm64.cc
diff --git a/runtime/vm/flow_graph_compiler_arm64.cc b/runtime/vm/flow_graph_compiler_arm64.cc
index a6e37ded98089d15f8cb2f7f2a4a95b674a7be17..00d61566d17346788bf950eb8e5b891712558666 100644
--- a/runtime/vm/flow_graph_compiler_arm64.cc
+++ b/runtime/vm/flow_graph_compiler_arm64.cc
@@ -799,7 +799,7 @@ void FlowGraphCompiler::CopyParameters() {
// Let R7 point to the first passed argument, i.e. to
// fp[kParamEndSlotFromFp + num_args - 0]; num_args (R7) is Smi.
__ add(R7, FP, Operand(R7, LSL, 2));
- __ AddImmediate(R7, R7, kParamEndSlotFromFp * kWordSize);
+ __ AddImmediate(R7, kParamEndSlotFromFp * kWordSize);
// Let R6 point to the entry of the first named argument.
__ add(R6, R4, Operand(ArgumentsDescriptor::first_named_entry_offset() -
kHeapObjectTag));
@@ -1491,7 +1491,7 @@ int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label,
__ CompareImmediate(R2, cid_start - bias);
__ b(next_label, NE);
} else {
- __ AddImmediate(R2, R2, bias - cid_start);
+ __ AddImmediate(R2, bias - cid_start);
bias = cid_start;
__ CompareImmediate(R2, cid_end - cid_start);
__ b(next_label, HI); // Unsigned higher.
« no previous file with comments | « runtime/vm/assembler_arm64_test.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698