Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 4817e502ebb7cd1edb06391b5e119f9ffe321c8c..9b63de9c9baf8214f42ed5cd549a886a0d96e21b 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -2971,6 +2971,14 @@ void FullCodeGenerator::VisitCall(Call* expr) { |
EmitKeyedCallWithLoadIC(expr, property->key()); |
} |
} |
+ } else if (call_type == Call::SUPER_CALL) { |
+ SuperReference* super_ref = callee->AsSuperReference(); |
+ DCHECK(super_ref != NULL); |
+ __ Push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
+ __ CallRuntime(Runtime::kGetPrototype, 1); |
+ __ Push(result_register()); |
+ VisitForStackValue(super_ref->this_var()); |
+ EmitCall(expr, CallICState::METHOD); |
} else { |
DCHECK(call_type == Call::OTHER_CALL); |
// Call to an arbitrary expression not handled specially above. |