Andreas Gampe | 2969bcd | 2015-03-09 12:57:41 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 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 | */ |
| 16 | |
| 17 | #ifndef ART_RUNTIME_INTERPRETER_UNSTARTED_RUNTIME_H_ |
| 18 | #define ART_RUNTIME_INTERPRETER_UNSTARTED_RUNTIME_H_ |
| 19 | |
| 20 | #include "interpreter.h" |
| 21 | |
| 22 | #include "dex_file.h" |
| 23 | #include "jvalue.h" |
| 24 | |
| 25 | namespace art { |
| 26 | |
| 27 | class Thread; |
| 28 | class ShadowFrame; |
| 29 | |
| 30 | namespace mirror { |
| 31 | |
| 32 | class ArtMethod; |
| 33 | class Object; |
| 34 | |
| 35 | } // namespace mirror |
| 36 | |
| 37 | namespace interpreter { |
| 38 | |
| 39 | void UnstartedRuntimeInitialize(); |
| 40 | |
| 41 | void UnstartedRuntimeInvoke(Thread* self, const DexFile::CodeItem* code_item, |
| 42 | ShadowFrame* shadow_frame, |
| 43 | JValue* result, size_t arg_offset) |
| 44 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
| 45 | |
| 46 | void UnstartedRuntimeJni(Thread* self, mirror::ArtMethod* method, mirror::Object* receiver, |
| 47 | uint32_t* args, JValue* result) |
| 48 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
| 49 | |
| 50 | } // namespace interpreter |
| 51 | } // namespace art |
| 52 | |
| 53 | #endif // ART_RUNTIME_INTERPRETER_UNSTARTED_RUNTIME_H_ |