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

Unified Diff: vm/instructions_ia32.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/instructions_ia32.h ('k') | vm/instructions_ia32_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/instructions_ia32.cc
===================================================================
--- vm/instructions_ia32.cc (revision 700)
+++ vm/instructions_ia32.cc (working copy)
@@ -23,66 +23,6 @@
}
-const int* ICLoadReceiver::pattern() const {
- static const int kLoadReceiverPattern[kLengthInBytes] =
- {0x8b, 0x42, 0x0b, 0x8b, 0x04, 0x44};
- return kLoadReceiverPattern;
-}
-
-
-uword JumpIfZero::TargetAddress() const {
- ASSERT(IsValid());
- return start() + kLengthInBytes + *reinterpret_cast<uword*>(start() + 2);
-}
-
-
-void JumpIfZero::SetTargetAddress(uword pc) {
- ASSERT(IsValid());
- *reinterpret_cast<uword*>(start() + 2) = pc - start() - kLengthInBytes;
-}
-
-
-const int* JumpIfZero::pattern() const {
- static const int kJzPattern[kLengthInBytes] = {0x0f, 0x84, -1, -1, -1, -1};
- return kJzPattern;
-}
-
-
-const int* CmpEaxWithImmediate::pattern() const {
- static const int kCmpWithImmediate[kLengthInBytes] = {0x3d, -1, -1, -1, -1};
- return kCmpWithImmediate;
-}
-
-
-const int* TestEaxIsSmi::pattern() const {
- static const int
- kTestSmiTag[kTestLengthInBytes + JumpIfZero::kLengthInBytes] =
- { 0xa8, 0x01, -1, -1, -1, -1, -1, -1};
- return kTestSmiTag;
-}
-
-
-const int* ICCheckReceiverClass::pattern() const {
- static const int kTestClass[kTestLengthInBytes + JumpIfZero::kLengthInBytes] =
- {0x81, 0xfb, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
- return kTestClass;
-}
-
-
-RawClass* ICCheckReceiverClass::TestClass() const {
- ASSERT(IsValid());
- Class& cls = Class::Handle();
- cls ^= *reinterpret_cast<RawObject**>(start() + 2);
- return cls.raw();
-}
-
-
-const int* LoadObjectClass::pattern() const {
- static const int kTestClass[kLoadObjectClassLengthInBytes] =
- {0x8b, 0x58, 0xff};
- return kTestClass;
-}
-
uword CallOrJump::TargetAddress() const {
ASSERT(IsValid());
return start() + kLengthInBytes + *reinterpret_cast<uword*>(start() + 1);
« no previous file with comments | « vm/instructions_ia32.h ('k') | vm/instructions_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698