Issue #3049 - Back out unstable minimal JIT direct-call hook

This commit is contained in:
Basilisk-Dev 2026-04-15 23:49:50 -04:00 committed by wuggy
commit 0f8deb1dba
3 changed files with 0 additions and 37 deletions

View file

@ -612,33 +612,6 @@ LookupOrCompileMinimalJit(JSContext* cx, JSScript* script, TinyLoongArchJitCode*
} // namespace
bool
TryCallLoongArchMinimalJit(JSContext* cx, HandleFunction fun, const CallArgs& args, bool* handled)
{
*handled = false;
if (!fun || !fun->isInterpreted())
return true;
JSScript* script = fun->nonLazyScript();
if (!CanUseMinimalJit(script, args))
return true;
TinyLoongArchJitCode fn;
if (!LookupOrCompileMinimalJit(cx, script, &fn))
return false;
int32_t result = 0;
int32_t arg0 = script->numArgs() >= 1 ? args[0].toInt32() : 0;
int32_t arg1 = script->numArgs() >= 2 ? args[1].toInt32() : 0;
if (!fn(arg0, arg1, &result))
return true;
args.rval().setInt32(result);
*handled = true;
return true;
}
bool
TryEnterLoongArchMinimalJit(JSContext* cx, RunState& state)
{

View file

@ -7,7 +7,6 @@
#define jit_LoongArchMinimalJit_h
#include "jspubtd.h"
#include "js/CallArgs.h"
namespace js {
@ -16,7 +15,6 @@ class RunState;
namespace jit {
[[nodiscard]] bool TryEnterLoongArchMinimalJit(JSContext* cx, RunState& state);
[[nodiscard]] bool TryCallLoongArchMinimalJit(JSContext* cx, HandleFunction fun, const CallArgs& args, bool* handled);
} // namespace jit
} // namespace js

View file

@ -503,14 +503,6 @@ js::InternalCallOrConstruct(JSContext* cx, const CallArgs& args, MaybeConstruct
if (!JSFunction::getOrCreateScript(cx, fun))
return false;
if (construct != CONSTRUCT) {
bool handled;
if (!jit::TryCallLoongArchMinimalJit(cx, fun, args, &handled))
return false;
if (handled)
return true;
}
/* Run function until JSOP_RETRVAL, JSOP_RETURN or error. */
InvokeState state(cx, args, construct);