Run time illegal access checks on static and direct methods
Fixes test 075.
Change-Id: I28b20451dcae8000dc0e2cb9068dfa5166659d43
diff --git a/src/constants.h b/src/constants.h
index 778d646..5c1323f 100644
--- a/src/constants.h
+++ b/src/constants.h
@@ -17,6 +17,8 @@
#ifndef ART_SRC_CONSTANTS_H_
#define ART_SRC_CONSTANTS_H_
+#include <iosfwd>
+
namespace art {
enum InstructionSet {
@@ -26,6 +28,13 @@
kX86
};
+enum InvokeType {
+ kStatic, kDirect, kVirtual, kSuper, kInterface,
+ kMaxInvokeType = kInterface
+};
+
+std::ostream& operator<<(std::ostream& os, const InvokeType& rhs);
+
} // namespace art
#include "constants_x86.h"