| Ian Rogers | bdb0391 | 2011-09-14 00:55:44 -0700 | [diff] [blame] | 1 | // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 | |||||
| 3 | #include "context.h" | ||||
| 4 | |||||
| 5 | #include "context_arm.h" | ||||
| 6 | #include "context_x86.h" | ||||
| 7 | |||||
| 8 | namespace art { | ||||
| 9 | |||||
| 10 | Context* Context::Create() { | ||||
| 11 | #if defined(__arm__) | ||||
| 12 | return new arm::ArmContext(); | ||||
| 13 | #else | ||||
| 14 | return new x86::X86Context(); | ||||
| 15 | #endif | ||||
| 16 | } | ||||
| 17 | |||||
| 18 | } // namespace art | ||||