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

Unified Diff: vm/code_patcher_ia32_test.cc

Issue 8379013: Implement new inline cache. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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 | « vm/code_patcher_ia32.cc ('k') | vm/code_patcher_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/code_patcher_ia32_test.cc
===================================================================
--- vm/code_patcher_ia32_test.cc (revision 700)
+++ vm/code_patcher_ia32_test.cc (working copy)
@@ -47,47 +47,15 @@
#define __ assembler->
-ASSEMBLER_TEST_GENERATE(InsertCall, assembler) {
- __ nop();
- __ nop();
- __ nop();
- __ nop();
- __ nop();
- __ ret();
-}
-
-
-ASSEMBLER_TEST_RUN(InsertCall, entry) {
- CodePatcher::InsertCall(entry, &StubCode::MegamorphicLookupLabel());
- Call call(entry);
- EXPECT_EQ(StubCode::MegamorphicLookupLabel().address(), call.TargetAddress());
-}
-
-
-ASSEMBLER_TEST_GENERATE(InsertJump, assembler) {
- __ nop();
- __ nop();
- __ nop();
- __ nop();
- __ nop();
- __ ret();
-}
-
-
-ASSEMBLER_TEST_RUN(InsertJump, entry) {
- CodePatcher::InsertJump(entry, &StubCode::MegamorphicLookupLabel());
- Jump jump(entry);
- EXPECT_EQ(StubCode::MegamorphicLookupLabel().address(), jump.TargetAddress());
-}
-
-
ASSEMBLER_TEST_GENERATE(IcDataAccess, assembler) {
const String& function_name = String::Handle(String::New("Vermicelles"));
ICData ic_data(function_name, 1);
EXPECT(!Array::Handle(ic_data.data()).IsNull());
__ LoadObject(ECX, Array::ZoneHandle(ic_data.data()));
__ LoadObject(EDX, CodeGenerator::ArgumentsDescriptor(1, Array::Handle()));
- __ call(&StubCode::CallInstanceFunctionLabel());
+ ExternalLabel target_label(
+ "InlineCache", StubCode::InlineCacheEntryPoint());
+ __ call(&target_label);
__ ret();
}
« no previous file with comments | « vm/code_patcher_ia32.cc ('k') | vm/code_patcher_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698