Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index e34acd67d441f6f8295bf7efd1b3521b21b6865f..87cc43a05baa7d5fd8792da6d30cf5b936bfa880 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -3722,6 +3722,11 @@ void HGraphBuilder::VisitProperty(Property* expr) { |
AddInstruction(new HCheckNonSmi(array)); |
instr = new HArrayLength(array); |
+ } else if (expr->IsFunctionPrototype()) { |
+ HValue* function = Pop(); |
+ AddInstruction(new HCheckNonSmi(function)); |
+ instr = new HLoadFunctionPrototype(function); |
+ |
} else if (expr->key()->IsPropertyName()) { |
Handle<String> name = expr->key()->AsLiteral()->AsPropertyName(); |
ZoneMapList* types = expr->GetReceiverTypes(); |