Index: runtime/vm/instructions_mips.cc |
=================================================================== |
--- runtime/vm/instructions_mips.cc (revision 19723) |
+++ runtime/vm/instructions_mips.cc (working copy) |
@@ -5,50 +5,58 @@ |
#include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
#if defined(TARGET_ARCH_MIPS) |
+#include "vm/constants_mips.h" |
#include "vm/instructions.h" |
#include "vm/object.h" |
namespace dart { |
-bool InstructionPattern::TestBytesWith(const int* data, int num_bytes) const { |
- UNIMPLEMENTED(); |
- return false; |
+CallPattern::CallPattern(uword pc, const Code& code) |
+ : end_(reinterpret_cast<uword*>(pc)), |
+ pool_index_(DecodePoolIndex()), |
+ object_pool_(Array::Handle(code.ObjectPool())) { } |
+ |
+ |
+uword CallPattern::Back(int n) const { |
+ ASSERT(n > 0); |
+ return *(end_ - n); |
} |
-uword CallPattern::TargetAddress() const { |
+int CallPattern::DecodePoolIndex() { |
UNIMPLEMENTED(); |
return 0; |
} |
-uword JumpPattern::TargetAddress() const { |
+uword CallPattern::TargetAddress() const { |
UNIMPLEMENTED(); |
return 0; |
} |
- |
-void CallPattern::SetTargetAddress(uword target) const { |
+void CallPattern::SetTargetAddress(uword target_address) const { |
UNIMPLEMENTED(); |
} |
-void JumpPattern::SetTargetAddress(uword target) const { |
+JumpPattern::JumpPattern(uword pc) : pc_(pc) { } |
+ |
+ |
+bool JumpPattern::IsValid() const { |
UNIMPLEMENTED(); |
+ return false; |
} |
- |
-const int* CallPattern::pattern() const { |
+uword JumpPattern::TargetAddress() const { |
UNIMPLEMENTED(); |
- return NULL; |
+ return 0; |
} |
-const int* JumpPattern::pattern() const { |
+void JumpPattern::SetTargetAddress(uword target_address) const { |
UNIMPLEMENTED(); |
- return NULL; |
} |
} // namespace dart |