Index: src/ic/handler-compiler.cc |
diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc |
index 05e9031915ac9ca4092939b77089a3676ef944a3..fef1f63116eaff8b91b2297581c7d674da7388d6 100644 |
--- a/src/ic/handler-compiler.cc |
+++ b/src/ic/handler-compiler.cc |
@@ -640,13 +640,8 @@ Handle<Object> ElementHandlerCompiler::GetKeyedLoadHandler( |
} |
bool is_js_array = instance_type == JS_ARRAY_TYPE; |
if (elements_kind == DICTIONARY_ELEMENTS) { |
- if (FLAG_tf_load_ic_stub) { |
- TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadElementDH); |
- return LoadHandler::LoadElement(isolate, elements_kind, false, |
- is_js_array); |
- } |
- TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadDictionaryElementStub); |
- return LoadDictionaryElementStub(isolate).GetCode(); |
+ TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadElementDH); |
+ return LoadHandler::LoadElement(isolate, elements_kind, false, is_js_array); |
} |
DCHECK(IsFastElementsKind(elements_kind) || |
IsFixedTypedArrayElementsKind(elements_kind)); |
@@ -654,16 +649,9 @@ Handle<Object> ElementHandlerCompiler::GetKeyedLoadHandler( |
bool convert_hole_to_undefined = |
is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && |
*receiver_map == isolate->get_initial_js_array_map(elements_kind); |
- if (FLAG_tf_load_ic_stub) { |
- TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadElementDH); |
- return LoadHandler::LoadElement(isolate, elements_kind, |
- convert_hole_to_undefined, is_js_array); |
- } else { |
- TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadFastElementStub); |
- return LoadFastElementStub(isolate, is_js_array, elements_kind, |
- convert_hole_to_undefined) |
- .GetCode(); |
- } |
+ TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadElementDH); |
+ return LoadHandler::LoadElement(isolate, elements_kind, |
+ convert_hole_to_undefined, is_js_array); |
} |
void ElementHandlerCompiler::CompileElementHandlers( |