Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 6184bb9e46b25c6a22015b216a3e60046a537f2d..b8eceed5c58674c7a8375aa38cdd8fa9e26782c1 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5619,6 +5619,12 @@ void HOptimizedGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
DCHECK(!CompileTimeValue::IsCompileTimeValue(value)); |
// Fall through. |
case ObjectLiteral::Property::COMPUTED: |
+ // TODO(arv): Add support for [[HomeObject]] |
arv (Not doing code reviews)
2014/11/10 18:06:35
This one should not be too hard to fix. I can prob
|
+ if (value->IsFunctionLiteral() && |
+ value->AsFunctionLiteral()->needs_super_binding()) { |
+ return Bailout(kObjectLiteralWithComplexProperty); |
+ } |
+ |
// It is safe to use [[Put]] here because the boilerplate already |
// contains computed properties with an uninitialized value. |
if (key->value()->IsInternalizedString()) { |