michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef assembler_moco_MocoStubs_h michael@0: #define assembler_moco_MocoStubs_h michael@0: michael@0: namespace JSC { michael@0: michael@0: class JITCode { michael@0: public: michael@0: JITCode(void* start, size_t size) michael@0: : m_start(start), m_size(size) michael@0: { } michael@0: JITCode() { } michael@0: void* start() const { return m_start; } michael@0: size_t size() const { return m_size; } michael@0: private: michael@0: void* m_start; michael@0: size_t m_size; michael@0: }; michael@0: michael@0: class CodeBlock { michael@0: public: michael@0: CodeBlock(JITCode& jc) michael@0: : m_jitcode(jc) michael@0: { michael@0: } michael@0: JITCode& getJITCode() { return m_jitcode; } michael@0: private: michael@0: JITCode& m_jitcode; michael@0: }; michael@0: michael@0: } // namespace JSC michael@0: michael@0: #endif /* assembler_moco_MocoStubs_h */