blob: 2d7d38011cfb05aaf209b38fc762b570dbf119a3 [file] [log] [blame]
Andreas Gampe2969bcd2015-03-09 12:57:41 -07001/*
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
25namespace art {
26
27class Thread;
28class ShadowFrame;
29
30namespace mirror {
31
32class ArtMethod;
33class Object;
34
35} // namespace mirror
36
37namespace interpreter {
38
39void UnstartedRuntimeInitialize();
40
41void 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
46void 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_