Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index e3bca3bfafabc901e0cc5b70b24faf953354aa2a..21d2cd1198fc1691f252693973932915f8ac8110 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6064,6 +6064,11 @@ void HOptimizedGraphBuilder::VisitArrayLiteral(ArrayLiteral* expr) { |
isolate()->factory()->empty_string(), |
Runtime::FunctionForId(function_id), |
3)); |
+ |
+ // De-opt if elements kind changed from boilerplate_elements_kind |
Yang
2013/06/19 13:40:30
add a period at the end of the comment.
mvstanton
2013/06/19 13:46:51
Done.
|
+ Handle<Map> map = Handle<Map>(original_boilerplate_object->map(), |
+ isolate()); |
+ AddInstruction(HCheckMaps::New(literal, map, zone())); |
} |
// The array is expected in the bailout environment during computation |