Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 02061a75145486fe8dd6b86310151329b7be91d0..0e74afca9adf44448b106904642bf98a2aabcdff 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -2041,7 +2041,7 @@ void BytecodeGenerator::VisitThisFunctionVariable(Variable* variable) { |
// TODO(rmcilroy): Remove once we have tests which exercise this code path. |
UNIMPLEMENTED(); |
- // Store the closure we were called with in the this_function_var. |
+ // Store the closure we were called with in the given variable. |
builder()->LoadAccumulatorWithRegister(Register::function_closure()); |
VisitVariableAssignment(variable, FeedbackVectorSlot::Invalid()); |
} |
@@ -2050,8 +2050,8 @@ void BytecodeGenerator::VisitThisFunctionVariable(Variable* variable) { |
void BytecodeGenerator::VisitNewTargetVariable(Variable* variable) { |
if (variable == nullptr) return; |
- // Store the closure we were called with in the this_function_var. |
- builder()->CallRuntime(Runtime::kGetOriginalConstructor, Register(), 0); |
+ // Store the new target we were called with in the given variable. |
+ builder()->CallRuntime(Runtime::kGetNewTarget, Register(), 0); |
VisitVariableAssignment(variable, FeedbackVectorSlot::Invalid()); |
} |