Commit 33b0b710 authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[wasm] [cleanup] Remove unused parameter from SyncValidate

R=ahaas@chromium.org

Change-Id: I952c5461ef44d4b01e99390e668bfc0d7f7ba25b
Reviewed-on: https://chromium-review.googlesource.com/488341Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44931}
parent 2920ea59
...@@ -177,8 +177,7 @@ void WebAssemblyValidate(const v8::FunctionCallbackInfo<v8::Value>& args) { ...@@ -177,8 +177,7 @@ void WebAssemblyValidate(const v8::FunctionCallbackInfo<v8::Value>& args) {
v8::ReturnValue<v8::Value> return_value = args.GetReturnValue(); v8::ReturnValue<v8::Value> return_value = args.GetReturnValue();
if (!thrower.error() && if (!thrower.error() &&
i::wasm::SyncValidate(reinterpret_cast<i::Isolate*>(isolate), &thrower, i::wasm::SyncValidate(reinterpret_cast<i::Isolate*>(isolate), bytes)) {
bytes)) {
return_value.Set(v8::True(isolate)); return_value.Set(v8::True(isolate));
} else { } else {
if (thrower.wasm_error()) thrower.Reify(); // Clear error. if (thrower.wasm_error()) thrower.Reify(); // Clear error.
......
...@@ -2502,8 +2502,7 @@ Handle<JSArray> wasm::GetCustomSections(Isolate* isolate, ...@@ -2502,8 +2502,7 @@ Handle<JSArray> wasm::GetCustomSections(Isolate* isolate,
return array_object; return array_object;
} }
bool wasm::SyncValidate(Isolate* isolate, ErrorThrower* thrower, bool wasm::SyncValidate(Isolate* isolate, const ModuleWireBytes& bytes) {
const ModuleWireBytes& bytes) {
if (bytes.start() == nullptr || bytes.length() == 0) return false; if (bytes.start() == nullptr || bytes.length() == 0) return false;
ModuleResult result = ModuleResult result =
DecodeWasmModule(isolate, bytes.start(), bytes.end(), true, kWasmOrigin); DecodeWasmModule(isolate, bytes.start(), bytes.end(), true, kWasmOrigin);
......
...@@ -449,7 +449,7 @@ void GrowDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables, ...@@ -449,7 +449,7 @@ void GrowDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables,
//============================================================================ //============================================================================
//== Compilation and instantiation =========================================== //== Compilation and instantiation ===========================================
//============================================================================ //============================================================================
V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate, ErrorThrower* thrower, V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate,
const ModuleWireBytes& bytes); const ModuleWireBytes& bytes);
V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> SyncCompileTranslatedAsmJs( V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> SyncCompileTranslatedAsmJs(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment