Commit c07c0e76 authored by Ng Zhi An's avatar Ng Zhi An Committed by V8 LUCI CQ

[compiler] Fix some -Wshadow warnings

Bug: v8:12244,v8:12245
Change-Id: Ic609c486fddcdb9b8171f013eb400dd74926d871
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3213142Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77325}
parent 574d50af
...@@ -548,9 +548,8 @@ void BytecodeAnalysis::Analyze() { ...@@ -548,9 +548,8 @@ void BytecodeAnalysis::Analyze() {
next_bytecode_in_liveness = switch_liveness.in; next_bytecode_in_liveness = switch_liveness.in;
for (--iterator; iterator.IsValid(); --iterator) { for (--iterator; iterator.IsValid(); --iterator) {
Bytecode bytecode = iterator.current_bytecode(); Bytecode bytecode = iterator.current_bytecode();
int current_offset = iterator.current_offset();
BytecodeLiveness const& liveness = BytecodeLiveness const& liveness =
liveness_map().GetLiveness(current_offset); liveness_map().GetLiveness(iterator.current_offset());
// There shouldn't be any more loops. // There shouldn't be any more loops.
DCHECK_NE(bytecode, Bytecode::kJumpLoop); DCHECK_NE(bytecode, Bytecode::kJumpLoop);
......
...@@ -4328,9 +4328,9 @@ Node* BytecodeGraphBuilder::MakeNode(const Operator* op, int value_input_count, ...@@ -4328,9 +4328,9 @@ Node* BytecodeGraphBuilder::MakeNode(const Operator* op, int value_input_count,
int context_index = exception_handlers_.top().context_register_; int context_index = exception_handlers_.top().context_register_;
interpreter::Register context_register(context_index); interpreter::Register context_register(context_index);
Environment* success_env = environment()->Copy(); Environment* success_env = environment()->Copy();
const Operator* op = common()->IfException(); const Operator* if_exception = common()->IfException();
Node* effect = environment()->GetEffectDependency(); Node* effect = environment()->GetEffectDependency();
Node* on_exception = graph()->NewNode(op, effect, result); Node* on_exception = graph()->NewNode(if_exception, effect, result);
Node* context = environment()->LookupRegister(context_register); Node* context = environment()->LookupRegister(context_register);
environment()->UpdateControlDependency(on_exception); environment()->UpdateControlDependency(on_exception);
environment()->UpdateEffectDependency(on_exception); environment()->UpdateEffectDependency(on_exception);
......
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