Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 702ede8105e4124c25ed51014978a020dfb9c053..bd5df3f3a791503368ed8dd9d70d8924a5e24474 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -1955,7 +1955,7 @@ void BytecodeGenerator::VisitCall(Call* expr) { |
.StoreAccumulatorInRegister(callee); |
} |
- // TODO(rmcilroy): Use CallIC to allow call type feedback. |
+ builder()->SetExpressionPosition(expr); |
builder()->Call(callee, receiver, 1 + args->length(), |
feedback_index(expr->CallFeedbackICSlot())); |
execution_result()->SetResultInAccumulator(); |
@@ -1969,6 +1969,7 @@ void BytecodeGenerator::VisitCallNew(CallNew* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
Register first_arg = VisitArguments(args); |
+ builder()->SetExpressionPosition(expr); |
builder()->New(constructor, first_arg, args->length()); |
execution_result()->SetResultInAccumulator(); |
} |