summaryrefslogtreecommitdiff
path: root/deps/v8/src/wasm/function-compiler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/wasm/function-compiler.cc')
-rw-r--r--deps/v8/src/wasm/function-compiler.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/src/wasm/function-compiler.cc b/deps/v8/src/wasm/function-compiler.cc
index f285deca1c..1b6b83a3b1 100644
--- a/deps/v8/src/wasm/function-compiler.cc
+++ b/deps/v8/src/wasm/function-compiler.cc
@@ -145,7 +145,7 @@ WasmCompilationResult WasmCompilationUnit::ExecuteCompilation(
WasmCompilationResult WasmCompilationUnit::ExecuteImportWrapperCompilation(
WasmEngine* engine, CompilationEnv* env) {
- FunctionSig* sig = env->module->functions[func_index_].sig;
+ const FunctionSig* sig = env->module->functions[func_index_].sig;
// Assume the wrapper is going to be a JS function with matching arity at
// instantiation time.
auto kind = compiler::kDefaultImportCallKind;
@@ -265,8 +265,8 @@ void WasmCompilationUnit::CompileWasmFunction(Isolate* isolate,
}
JSToWasmWrapperCompilationUnit::JSToWasmWrapperCompilationUnit(
- Isolate* isolate, WasmEngine* wasm_engine, FunctionSig* sig, bool is_import,
- const WasmFeatures& enabled_features)
+ Isolate* isolate, WasmEngine* wasm_engine, const FunctionSig* sig,
+ bool is_import, const WasmFeatures& enabled_features)
: is_import_(is_import),
sig_(sig),
job_(compiler::NewJSToWasmCompilationJob(isolate, wasm_engine, sig,
@@ -293,7 +293,7 @@ Handle<Code> JSToWasmWrapperCompilationUnit::Finalize(Isolate* isolate) {
// static
Handle<Code> JSToWasmWrapperCompilationUnit::CompileJSToWasmWrapper(
- Isolate* isolate, FunctionSig* sig, bool is_import) {
+ Isolate* isolate, const FunctionSig* sig, bool is_import) {
// Run the compilation unit synchronously.
WasmFeatures enabled_features = WasmFeatures::FromIsolate(isolate);
JSToWasmWrapperCompilationUnit unit(isolate, isolate->wasm_engine(), sig,