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

Unified Diff: runtime/vm/instructions_arm_test.cc

Issue 221173011: Simplify handling of IC and megamorphic cache misses. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased Created 6 years, 8 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/instructions_arm_test.cc
===================================================================
--- runtime/vm/instructions_arm_test.cc (revision 34771)
+++ runtime/vm/instructions_arm_test.cc (working copy)
@@ -16,7 +16,7 @@
#define __ assembler->
ASSEMBLER_TEST_GENERATE(Call, assembler) {
- __ BranchLinkPatchable(&StubCode::InstanceFunctionLookupLabel());
+ __ BranchLinkPatchable(&StubCode::InvokeDartCodeLabel());
__ Ret();
}
@@ -27,13 +27,13 @@
// before the end of the code buffer.
CallPattern call(test->entry() + test->code().Size() - Instr::kInstrSize,
test->code());
- EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(),
+ EXPECT_EQ(StubCode::InvokeDartCodeLabel().address(),
call.TargetAddress());
}
ASSEMBLER_TEST_GENERATE(Jump, assembler) {
- __ BranchPatchable(&StubCode::InstanceFunctionLookupLabel());
+ __ BranchPatchable(&StubCode::InvokeDartCodeLabel());
__ BranchPatchable(&StubCode::AllocateArrayLabel());
}
@@ -47,7 +47,7 @@
VirtualMemory::kReadWrite);
EXPECT(status);
JumpPattern jump1(test->entry(), test->code());
- EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(),
+ EXPECT_EQ(StubCode::InvokeDartCodeLabel().address(),
jump1.TargetAddress());
JumpPattern jump2(test->entry() + jump1.pattern_length_in_bytes(),
test->code());
@@ -59,7 +59,7 @@
jump2.SetTargetAddress(target1);
EXPECT_EQ(StubCode::AllocateArrayLabel().address(),
jump1.TargetAddress());
- EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(),
+ EXPECT_EQ(StubCode::InvokeDartCodeLabel().address(),
jump2.TargetAddress());
}
@@ -68,7 +68,7 @@
ASSEMBLER_TEST_GENERATE(JumpARMv6, assembler) {
// ARMv7 is the default.
HostCPUFeatures::set_arm_version(ARMv6);
- __ BranchPatchable(&StubCode::InstanceFunctionLookupLabel());
+ __ BranchPatchable(&StubCode::InvokeDartCodeLabel());
__ BranchPatchable(&StubCode::AllocateArrayLabel());
HostCPUFeatures::set_arm_version(ARMv7);
}
@@ -84,7 +84,7 @@
VirtualMemory::kReadWrite);
EXPECT(status);
JumpPattern jump1(test->entry(), test->code());
- EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(),
+ EXPECT_EQ(StubCode::InvokeDartCodeLabel().address(),
jump1.TargetAddress());
JumpPattern jump2(test->entry() + jump1.pattern_length_in_bytes(),
test->code());
@@ -96,7 +96,7 @@
jump2.SetTargetAddress(target1);
EXPECT_EQ(StubCode::AllocateArrayLabel().address(),
jump1.TargetAddress());
- EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(),
+ EXPECT_EQ(StubCode::InvokeDartCodeLabel().address(),
jump2.TargetAddress());
HostCPUFeatures::set_arm_version(ARMv7);
}

Powered by Google App Engine
This is Rietveld 408576698