From 8ed45c876077771455d63dd7e315b439230812f8 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Thu, 8 Nov 2018 15:08:57 +0000 Subject: Add test configuration for the switch interpreter. Bug: 31358597 Test: ./art/test/testrunner/run_build_test_target.py art-interpreter-cxx Change-Id: Iebb7a3a5168a27654984f3749a7b86542422671b --- runtime/interpreter/interpreter.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/interpreter/interpreter.cc') diff --git a/runtime/interpreter/interpreter.cc b/runtime/interpreter/interpreter.cc index 5784b9b898..d004d642d0 100644 --- a/runtime/interpreter/interpreter.cc +++ b/runtime/interpreter/interpreter.cc @@ -237,7 +237,11 @@ enum InterpreterImplKind { kMterpImplKind // Assembly interpreter }; +#if ART_USE_CXX_INTERPRETER +static constexpr InterpreterImplKind kInterpreterImplKind = kSwitchImplKind; +#else static constexpr InterpreterImplKind kInterpreterImplKind = kMterpImplKind; +#endif static inline JValue Execute( Thread* self, -- cgit v1.2.3-59-g8ed1b