Commit 22713850 authored by Andreas Haas's avatar Andreas Haas Committed by V8 LUCI CQ

[cleanup] Fix shadowed variables in runtime-wasm.cc

R=clemensb@chromium.org

Bug: v8:12244
Change-Id: I9d633fd3c79703ee65dc2f57b556fde4853cc35c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3181105Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77055}
parent 2bde2cc7
......@@ -245,7 +245,7 @@ RUNTIME_FUNCTION(Runtime_WasmCompileWrapper) {
const wasm::WasmModule* module = instance->module();
const int function_index = function_data->function_index();
const wasm::WasmFunction function = module->functions[function_index];
const wasm::WasmFunction& function = module->functions[function_index];
const wasm::FunctionSig* sig = function.sig;
// The start function is not guaranteed to be registered as
......@@ -277,8 +277,8 @@ RUNTIME_FUNCTION(Runtime_WasmCompileWrapper) {
continue;
}
int index = static_cast<int>(exp.index);
wasm::WasmFunction function = module->functions[index];
if (function.sig == sig && index != function_index) {
const wasm::WasmFunction& exp_function = module->functions[index];
if (exp_function.sig == sig && index != function_index) {
ReplaceWrapper(isolate, instance, index, wrapper_code);
}
}
......@@ -572,9 +572,8 @@ RUNTIME_FUNCTION(Runtime_WasmDebugBreak) {
i::WeakArrayList weak_instance_list = script->wasm_weak_instance_list();
for (int i = 0; i < weak_instance_list.length(); ++i) {
if (weak_instance_list.Get(i)->IsCleared()) continue;
i::WasmInstanceObject instance = i::WasmInstanceObject::cast(
weak_instance_list.Get(i)->GetHeapObject());
instance.set_break_on_entry(false);
i::WasmInstanceObject::cast(weak_instance_list.Get(i)->GetHeapObject())
.set_break_on_entry(false);
}
DCHECK(!instance->break_on_entry());
Handle<FixedArray> on_entry_breakpoints;
......
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