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

Unified Diff: runtime/vm/instructions_x64_test.cc

Issue 22825023: Uses an object pool on x64 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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_x64.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_x64_test.cc
===================================================================
--- runtime/vm/instructions_x64_test.cc (revision 27291)
+++ runtime/vm/instructions_x64_test.cc (working copy)
@@ -21,25 +21,28 @@
ASSEMBLER_TEST_RUN(Call, test) {
- CallPattern call(test->entry());
+ CallPattern call(test->entry(), test->code());
EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(),
call.TargetAddress());
}
ASSEMBLER_TEST_GENERATE(Jump, assembler) {
- __ jmp(&StubCode::InstanceFunctionLookupLabel());
- __ jmp(&StubCode::AllocateArrayLabel());
+ __ EnterDartFrame(0); // 20 bytes
+ __ JmpPatchable(&StubCode::InstanceFunctionLookupLabel(), PP);
+ __ JmpPatchable(&StubCode::AllocateArrayLabel(), PP);
+ __ LeaveFrameWithPP();
__ ret();
}
ASSEMBLER_TEST_RUN(Jump, test) {
- JumpPattern jump1(test->entry());
+ JumpPattern jump1(test->entry() + 20, test->code());
jump1.IsValid();
EXPECT_EQ(StubCode::InstanceFunctionLookupLabel().address(),
jump1.TargetAddress());
- JumpPattern jump2(test->entry() + jump1.pattern_length_in_bytes());
+ JumpPattern jump2(test->entry() + jump1.pattern_length_in_bytes() + 20,
+ test->code());
EXPECT_EQ(StubCode::AllocateArrayLabel().address(),
jump2.TargetAddress());
uword target1 = jump1.TargetAddress();
« no previous file with comments | « runtime/vm/instructions_x64.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698