blob: de07c72ef0cf249a4d7851e16e0b64340f5e2347 [file] [log] [blame]
Elliott Hughes2faa5f12012-01-30 14:42:07 -08001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Ian Rogersb033c752011-07-20 12:22:35 -070016
Brian Carlstromfc0e3212013-07-17 14:40:12 -070017#ifndef ART_RUNTIME_INVOKE_TYPE_H_
18#define ART_RUNTIME_INVOKE_TYPE_H_
Ian Rogersb033c752011-07-20 12:22:35 -070019
Ian Rogersc8b306f2012-02-17 21:34:44 -080020#include <iosfwd>
21
buzbeec143c552011-08-20 17:38:58 -070022namespace art {
23
Ian Rogersc8b306f2012-02-17 21:34:44 -080024enum InvokeType {
Brian Carlstrom7934ac22013-07-26 10:54:15 -070025 kStatic, // <<static>>
26 kDirect, // <<direct>>
27 kVirtual, // <<virtual>>
28 kSuper, // <<super>>
29 kInterface, // <<interface>>
Ian Rogersc8b306f2012-02-17 21:34:44 -080030 kMaxInvokeType = kInterface
31};
32
33std::ostream& operator<<(std::ostream& os, const InvokeType& rhs);
34
buzbeec143c552011-08-20 17:38:58 -070035} // namespace art
36
Brian Carlstromfc0e3212013-07-17 14:40:12 -070037#endif // ART_RUNTIME_INVOKE_TYPE_H_