| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index 06d041281fa2ca2af7c51c6196d01ab50788d5e1..57db277577ef3d9ca3258731893664add185809b 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -2321,10 +2321,15 @@ void LCodeGen::EmitLoadFieldOrConstantFunction(Register result,
|
|
|
| // 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();
|
| }
|
|
|