Skip to content

Commit

Permalink
Fix PlayStation build following 266368@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=259586

Unreviewed build fix.

* Source/JavaScriptCore/llint/InPlaceInterpreter.cpp:
* Source/JavaScriptCore/llint/InPlaceInterpreter.h:
* Source/JavaScriptCore/runtime/InitializeThreading.cpp:
(JSC::initialize):
IPInt is a wasm feature; it must be guarded by ENABLE(WEBASSEMBLY).

Canonical link: https://commits.webkit.org/266378@main
  • Loading branch information
rkirsling committed Jul 28, 2023
1 parent ef391b1 commit 1f29fc2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/JavaScriptCore/llint/InPlaceInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
#include "config.h"
#include "InPlaceInterpreter.h"

#if ENABLE(WEBASSEMBLY)

#include "ArithProfile.h"
#include "CodeBlock.h"
#include "JSCConfig.h"
#include "LLIntCLoop.h"
#include "LLIntPCRanges.h"
#include "LLIntSlowPaths.h"
#include "LLIntThunks.h"
Expand Down Expand Up @@ -57,3 +58,5 @@ void initialize()
}

} }

#endif // ENABLE(WEBASSEMBLY)
4 changes: 4 additions & 0 deletions Source/JavaScriptCore/llint/InPlaceInterpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

#pragma once

#if ENABLE(WEBASSEMBLY)

extern "C" void ipint_entry();

#define IPINT_VALIDATE_DEFINE_FUNCTION(opcode, name) \
Expand Down Expand Up @@ -226,3 +228,5 @@ namespace JSC { namespace IPInt {
void initialize();

} }

#endif // ENABLE(WEBASSEMBLY)
2 changes: 2 additions & 0 deletions Source/JavaScriptCore/runtime/InitializeThreading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ void initialize()
JITOperationList::populatePointersInJavaScriptCore();

AssemblyCommentRegistry::initialize();
#if ENABLE(WEBASSEMBLY)
if (UNLIKELY(Options::useWasmIPInt()))
IPInt::initialize();
#endif
LLInt::initialize();
DisallowGC::initialize();

Expand Down

0 comments on commit 1f29fc2

Please sign in to comment.