Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index cfacbac45922f547258b75a11f179828aa4b96f3..1e3dd32a97034bff9fa8636b00c8e2ac55e3f90a 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -749,7 +749,7 @@ void StandardFrame::IterateCompiledFrame(ObjectVisitor* v) const { |
safepoint_bits += kNumSafepointRegisters >> kBitsPerByteLog2; |
// Visit the rest of the parameters. |
- if (!is_js_to_wasm() && !is_wasm()) { |
+ if (!is_wasm() || is_wasm_to_js()) { |
// Non-WASM frames have tagged values as parameters. |
v->VisitPointers(parameters_base, parameters_limit); |
} |
@@ -766,7 +766,7 @@ void StandardFrame::IterateCompiledFrame(ObjectVisitor* v) const { |
// Visit the return address in the callee and incoming arguments. |
IteratePc(v, pc_address(), constant_pool_address(), code); |
- if (!is_wasm() && !is_wasm_to_js()) { |
+ if (!is_wasm() || is_js_to_wasm()) { |
// Visit the context in stub frame and JavaScript frame. |
// Visit the function in JavaScript frame. |
v->VisitPointers(frame_header_base, frame_header_limit); |