blob: 5c1323fe1be9e9a40cb5c4468c70fb2ecad04db8 [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
17#ifndef ART_SRC_CONSTANTS_H_
18#define ART_SRC_CONSTANTS_H_
19
Ian Rogersc8b306f2012-02-17 21:34:44 -080020#include <iosfwd>
21
buzbeec143c552011-08-20 17:38:58 -070022namespace art {
23
24enum InstructionSet {
25 kNone,
26 kArm,
27 kThumb2,
28 kX86
29};
30
Ian Rogersc8b306f2012-02-17 21:34:44 -080031enum InvokeType {
32 kStatic, kDirect, kVirtual, kSuper, kInterface,
33 kMaxInvokeType = kInterface
34};
35
36std::ostream& operator<<(std::ostream& os, const InvokeType& rhs);
37
buzbeec143c552011-08-20 17:38:58 -070038} // namespace art
39
Brian Carlstrom578bbdc2011-07-21 14:07:47 -070040#include "constants_x86.h"
Brian Carlstrom578bbdc2011-07-21 14:07:47 -070041#include "constants_arm.h"
Ian Rogersb033c752011-07-20 12:22:35 -070042
43#endif // ART_SRC_CONSTANTS_H_