tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

BaselineDebugModeOSR.h (1090B)


      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_BaselineDebugModeOSR_h
      8 #define jit_BaselineDebugModeOSR_h
      9 
     10 #include "jstypes.h"
     11 
     12 #include "debugger/DebugAPI.h"
     13 
     14 struct JS_PUBLIC_API JSContext;
     15 
     16 namespace js {
     17 namespace jit {
     18 
     19 // Note that this file and the corresponding .cpp implement debug mode
     20 // on-stack recompilation. This is to be distinguished from ordinary
     21 // Baseline->Ion OSR, which is used to jump into compiled loops.
     22 
     23 [[nodiscard]] bool RecompileOnStackBaselineScriptsForDebugMode(
     24    JSContext* cx, const DebugAPI::ExecutionObservableSet& obs,
     25    DebugAPI::IsObserving observing);
     26 
     27 [[nodiscard]] bool RecompileBaselineScriptForDebugMode(
     28    JSContext* cx, JSScript* script, DebugAPI::IsObserving observing);
     29 
     30 }  // namespace jit
     31 }  // namespace js
     32 
     33 #endif  // jit_BaselineDebugModeOSR_h