Revert "[wasm] [cleanup] Remove unused parameter from SyncValidate"
This reverts commit 33b0b710b1
.
Reason for revert: Fails on arm: http://build.chromium.org/p/client.v8.ports/builders/V8%20Arm%20-%20debug/builds/2950/steps/Check/logs/Bits.RoundUpToPowerOf..
Original change's description:
> [wasm] [cleanup] Remove unused parameter from SyncValidate
>
> R=ahaas@chromium.org
>
> Change-Id: I952c5461ef44d4b01e99390e668bfc0d7f7ba25b
> Reviewed-on: https://chromium-review.googlesource.com/488341
> Reviewed-by: Andreas Haas <ahaas@chromium.org>
> Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#44931}
TBR=ahaas@chromium.org,clemensh@chromium.org,v8-reviews@googlegroups.com,wasm-v8@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Change-Id: Ie5f28109b86d7810b95053cbca563dea96bd13b2
Reviewed-on: https://chromium-review.googlesource.com/488364
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44934}
This commit is contained in:
parent
e177068e5c
commit
a9f4288730
@ -177,7 +177,8 @@ void WebAssemblyValidate(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||
|
||||
v8::ReturnValue<v8::Value> return_value = args.GetReturnValue();
|
||||
if (!thrower.error() &&
|
||||
i::wasm::SyncValidate(reinterpret_cast<i::Isolate*>(isolate), bytes)) {
|
||||
i::wasm::SyncValidate(reinterpret_cast<i::Isolate*>(isolate), &thrower,
|
||||
bytes)) {
|
||||
return_value.Set(v8::True(isolate));
|
||||
} else {
|
||||
if (thrower.wasm_error()) thrower.Reify(); // Clear error.
|
||||
|
@ -2502,7 +2502,8 @@ Handle<JSArray> wasm::GetCustomSections(Isolate* isolate,
|
||||
return array_object;
|
||||
}
|
||||
|
||||
bool wasm::SyncValidate(Isolate* isolate, const ModuleWireBytes& bytes) {
|
||||
bool wasm::SyncValidate(Isolate* isolate, ErrorThrower* thrower,
|
||||
const ModuleWireBytes& bytes) {
|
||||
if (bytes.start() == nullptr || bytes.length() == 0) return false;
|
||||
ModuleResult result =
|
||||
DecodeWasmModule(isolate, bytes.start(), bytes.end(), true, kWasmOrigin);
|
||||
|
@ -449,7 +449,7 @@ void GrowDispatchTables(Isolate* isolate, Handle<FixedArray> dispatch_tables,
|
||||
//============================================================================
|
||||
//== Compilation and instantiation ===========================================
|
||||
//============================================================================
|
||||
V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate,
|
||||
V8_EXPORT_PRIVATE bool SyncValidate(Isolate* isolate, ErrorThrower* thrower,
|
||||
const ModuleWireBytes& bytes);
|
||||
|
||||
V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> SyncCompileTranslatedAsmJs(
|
||||
|
Loading…
Reference in New Issue
Block a user