| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index 7a11c23a84d9486cc45667b694409b3e0ad12160..af1f3a12a28ca72543b1468bd38836f7e4b19f4a 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -1480,8 +1480,9 @@ Handle<Code> KeyedLoadStubCompiler::CompileLoadElement(
|
| elements_kind).GetCode(isolate());
|
| __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK);
|
| } else {
|
| - Handle<Code> stub =
|
| - KeyedLoadDictionaryElementStub().GetCode(isolate());
|
| + Handle<Code> stub = FLAG_compiled_keyed_dictionary_loads
|
| + ? KeyedLoadDictionaryElementStub().GetCode(isolate())
|
| + : KeyedLoadDictionaryElementPlatformStub().GetCode(isolate());
|
| __ DispatchMap(receiver(), scratch1(), receiver_map, stub, DO_SMI_CHECK);
|
| }
|
|
|
|
|