blob: 903e5cc1507860d82fcc420d5352486ff8174811 [file] [log] [blame]
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -07001/*
2 * Copyright (C) 2012 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
Shih-wei Liao21d28f52012-06-12 05:55:00 -070017#include "greenland/runtime_entry_points.h"
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -070018
Shih-wei Liao21d28f52012-06-12 05:55:00 -070019#include "runtime_utils.h"
20#include "runtime_support.h"
21
22using namespace art;
23using namespace art::greenland;
24
25namespace {
26
27Object* art_resolve_string(Method* referrer, uint32_t string_idx) {
28 return ResolveStringFromCode(referrer, string_idx);
29}
30
31} // anonymous namespace
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -070032
33namespace art {
34namespace greenland {
35
Shih-wei Liao21d28f52012-06-12 05:55:00 -070036void InitDexCacheRuntimes(RuntimeEntryPoints* entry_points) {
37 entry_points->ResolveString = art_resolve_string;
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -070038}
39
40} // namespace greenland
41} // namespace art