Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 8dd58b4ee4ecc8f7b00c267274f183afe9997139..5225763a3868219684ec8f454d39c0ab17fc7785 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2464,10 +2464,15 @@ void LCodeGen::EmitPushTaggedOperand(LOperand* operand) { |
// Check for cases where EmitLoadFieldOrConstantFunction needs to walk the |
// prototype chain, which causes unbounded code generation. |
-static bool CompactEmit( |
- SmallMapList* list, Handle<String> name, int i, Isolate* isolate) { |
- LookupResult lookup(isolate); |
+static bool CompactEmit(SmallMapList* list, |
+ Handle<String> name, |
+ int i, |
+ Isolate* isolate) { |
Handle<Map> map = list->at(i); |
+ // If the map has ElementsKind transitions, we will generate map checks |
+ // for each kind in __ CompareMap(..., ALLOW_ELEMENTS_TRANSITION_MAPS). |
+ if (map->elements_transition_map() != NULL) return false; |
+ LookupResult lookup(isolate); |
map->LookupInDescriptors(NULL, *name, &lookup); |
return lookup.IsField() || lookup.IsConstantFunction(); |
} |