1 /** 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "runtime/tests/interpreter/test_runtime_interface.h" 17 18 namespace panda::interpreter::test { 19 20 RuntimeInterface::NullPointerExceptionData RuntimeInterface::npe_data; 21 22 RuntimeInterface::ArrayIndexOutOfBoundsExceptionData RuntimeInterface::array_oob_exception_data; 23 24 RuntimeInterface::NegativeArraySizeExceptionData RuntimeInterface::array_neg_size_exception_data; 25 26 RuntimeInterface::ArithmeticException RuntimeInterface::arithmetic_exception_data; 27 28 RuntimeInterface::ClassCastExceptionData RuntimeInterface::class_cast_exception_data; 29 30 RuntimeInterface::AbstractMethodError RuntimeInterface::abstract_method_error_data; 31 32 RuntimeInterface::ArrayStoreExceptionData RuntimeInterface::array_store_exception_data; 33 34 coretypes::Array *RuntimeInterface::array_object; 35 36 Class *RuntimeInterface::array_class; 37 38 uint32_t RuntimeInterface::array_length; 39 40 Class *RuntimeInterface::resolved_class; 41 42 ObjectHeader *RuntimeInterface::object; 43 44 Class *RuntimeInterface::object_class; 45 46 uint32_t RuntimeInterface::catch_block_pc_offset; 47 48 RuntimeInterface::InvokeMethodHandler RuntimeInterface::invoke_handler; 49 DummyGC(panda::mem::ObjectAllocatorBase * object_allocator,const panda::mem::GCSettings & settings)50DummyGC::DummyGC(panda::mem::ObjectAllocatorBase *object_allocator, const panda::mem::GCSettings &settings) 51 : GC(object_allocator, settings) 52 { 53 } 54 55 DummyGC RuntimeInterface::dummy_gc(nullptr, panda::mem::GCSettings()); 56 57 Method *RuntimeInterface::resolved_method; 58 59 Field *RuntimeInterface::resolved_field; 60 61 const void *RuntimeInterface::entry_point; 62 63 uint32_t RuntimeInterface::jit_threshold; 64 65 } // namespace panda::interpreter::test 66