mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1208259 - Disable ARM64 Ion, fail testPreserveJitCode. r=jandem
IonMonkey for ARM64 is not yet implemented, so don't try running it. The test case in testPreserveJitCode is explicitly counting how many functions get Ion-compiled. Mark the test as a known failure for ARM64 when Ion is disabled.
This commit is contained in:
parent
633241113d
commit
eaa316458e
@ -153,7 +153,8 @@ uint8_t* LazyLinkTopActivation(JSContext* cx);
|
||||
static inline bool
|
||||
IsIonEnabled(JSContext* cx)
|
||||
{
|
||||
#ifdef JS_CODEGEN_NONE
|
||||
// The ARM64 Ion engine is not yet implemented.
|
||||
#if defined(JS_CODEGEN_NONE) || defined(JS_CODEGEN_ARM64)
|
||||
return false;
|
||||
#else
|
||||
return cx->runtime()->options().ion() &&
|
||||
|
@ -2,6 +2,9 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// For js::jit::IsIonEnabled().
|
||||
#include "jit/Ion.h"
|
||||
|
||||
#include "jsapi-tests/tests.h"
|
||||
|
||||
using namespace JS;
|
||||
@ -40,6 +43,15 @@ testPreserveJitCode(bool preserveJitCode, unsigned remainingIonScripts)
|
||||
CHECK(global);
|
||||
JSAutoCompartment ac(cx, global);
|
||||
|
||||
#ifdef JS_CODEGEN_ARM64
|
||||
// The ARM64 Ion JIT is not yet enabled, so this test will fail with
|
||||
// countIonScripts(global) == 0. Once Ion is enabled for ARM64, this test
|
||||
// should be passing again, and this code can be deleted.
|
||||
// Bug 1208526 - ARM64: Reenable jsapi-tests/testPreserveJitCode once Ion is enabled
|
||||
if (!js::jit::IsIonEnabled(cx))
|
||||
knownFail = true;
|
||||
#endif
|
||||
|
||||
CHECK_EQUAL(countIonScripts(global), 0u);
|
||||
|
||||
const char* source =
|
||||
|
Loading…
Reference in New Issue
Block a user