blob: 330ed1e5581b7b00f99366c15484a0fdbc14d583 [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 Rogersbdb03912011-09-14 00:55:44 -070016
17#include "context.h"
18
19#include "context_arm.h"
20#include "context_x86.h"
21
22namespace art {
23
24Context* Context::Create() {
25#if defined(__arm__)
26 return new arm::ArmContext();
27#else
28 return new x86::X86Context();
29#endif
30}
31
32} // namespace art