Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index 7f22ccbb4b7eb00efcecdecc0b6e0f38c59bf9fc..77b3d7e93cc60a4501a4918c1d569598ca31cf51 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -824,9 +824,15 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::MarkTryEnd(int handler_id) { |
BytecodeArrayBuilder& BytecodeArrayBuilder::Call(Register callable, |
RegisterList args, |
int feedback_slot, |
+ Call::CallType call_type, |
TailCallMode tail_call_mode) { |
if (tail_call_mode == TailCallMode::kDisallow) { |
- OutputCall(callable, args, args.register_count(), feedback_slot); |
+ if (call_type == Call::NAMED_PROPERTY_CALL || |
+ call_type == Call::KEYED_PROPERTY_CALL) { |
+ OutputCallProperty(callable, args, args.register_count(), feedback_slot); |
+ } else { |
+ OutputCall(callable, args, args.register_count(), feedback_slot); |
+ } |
} else { |
DCHECK(tail_call_mode == TailCallMode::kAllow); |
OutputTailCall(callable, args, args.register_count(), feedback_slot); |