Index: src/ic/handler-compiler.cc |
diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc |
index 99c9c1519d3ccbbced2f1384945e66da2021b0c7..04b8fb0c8cd436e804b86af5ca5d29500952f3db 100644 |
--- a/src/ic/handler-compiler.cc |
+++ b/src/ic/handler-compiler.cc |
@@ -537,8 +537,7 @@ |
void ElementHandlerCompiler::CompileElementHandlers( |
- MapHandleList* receiver_maps, CodeHandleList* handlers, |
- LanguageMode language_mode) { |
+ MapHandleList* receiver_maps, CodeHandleList* handlers) { |
for (int i = 0; i < receiver_maps->length(); ++i) { |
Handle<Map> receiver_map = receiver_maps->at(i); |
Handle<Code> cached_stub; |
@@ -554,10 +553,8 @@ |
// No need to check for an elements-free prototype chain here, the |
// generated stub code needs to check that dynamically anyway. |
bool convert_hole_to_undefined = |
- (is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && |
- *receiver_map == |
- isolate()->get_initial_js_array_map(elements_kind)) && |
- !is_strong(language_mode); |
+ is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && |
+ *receiver_map == isolate()->get_initial_js_array_map(elements_kind); |
if (receiver_map->has_indexed_interceptor()) { |
cached_stub = LoadIndexedInterceptorStub(isolate()).GetCode(); |
@@ -570,9 +567,7 @@ |
convert_hole_to_undefined).GetCode(); |
} else { |
DCHECK(elements_kind == DICTIONARY_ELEMENTS); |
- LoadICState state = LoadICState( |
- is_strong(language_mode) ? LoadICState::kStrongModeState : 0); |
- cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); |
+ cached_stub = LoadDictionaryElementStub(isolate()).GetCode(); |
} |
} |