StubFolding.h (793B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 2 * vim: set ts=8 sts=2 et sw=2 tw=80: 3 * This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef jit_StubFolding_h 8 #define jit_StubFolding_h 9 10 #include "js/TypeDecls.h" 11 12 namespace js::jit { 13 14 class CacheIRWriter; 15 class ICFallbackStub; 16 class ICScript; 17 18 bool TryFoldingStubs(JSContext* cx, ICFallbackStub* fallback, JSScript* script, 19 ICScript* icScript); 20 21 bool AddToFoldedStub(JSContext* cx, const CacheIRWriter& writer, 22 ICScript* icScript, ICFallbackStub* fallback); 23 24 } // namespace js::jit 25 26 #endif // jit_StubFolding_h