| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index 67002a36b17abdba2a2a136ff226f00ed2237d5f..fb8d773260240baaf4da3ae96cc8a5ae4b2b40c6 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -1470,8 +1470,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);
|
| }
|
|
|
|
|