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

Unified Diff: runtime/vm/instructions_arm64_test.cc

Issue 2226893002: Optimize AOT's switchable calls for the monomorphic case. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 4 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/instructions_arm64.cc ('k') | runtime/vm/instructions_arm_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_arm64_test.cc
diff --git a/runtime/vm/instructions_arm64_test.cc b/runtime/vm/instructions_arm64_test.cc
index 970d271b4cdfc3cd47e70d25546851536bb5c45a..7ad4fb9b6ea97ca3be7250b328e0c7ddaa8b444c 100644
--- a/runtime/vm/instructions_arm64_test.cc
+++ b/runtime/vm/instructions_arm64_test.cc
@@ -27,7 +27,8 @@ ASSEMBLER_TEST_RUN(Call, test) {
// The return address, which must be the address of an instruction contained
// in the code, points to the Ret instruction above, i.e. one instruction
// before the end of the code buffer.
- CallPattern call(test->entry() + test->code().Size() - Instr::kInstrSize,
+ uword end = test->payload_start() + test->code().Size();
+ CallPattern call(end - Instr::kInstrSize,
test->code());
EXPECT_EQ(StubCode::InvokeDartCode_entry()->code(),
call.TargetCode());
« no previous file with comments | « runtime/vm/instructions_arm64.cc ('k') | runtime/vm/instructions_arm_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698