Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 577c2d773f43d254e5692eba6cdd59ef7049655d..c942d9d6824cc9d3a32798840e5b9363a581872c 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -435,14 +435,6 @@ Object* StubCache::ComputeCallConstant(int argc, |
argc); |
Object* code = map->FindInCodeCache(name, flags); |
if (code->IsUndefined()) { |
- if (object->IsJSObject()) { |
- Object* opt = |
- Top::LookupSpecialFunction(JSObject::cast(object), holder, function); |
- if (opt->IsJSFunction()) { |
- check = StubCompiler::JSARRAY_HAS_FAST_ELEMENTS_CHECK; |
- function = JSFunction::cast(opt); |
- } |
- } |
// If the function hasn't been compiled yet, we cannot do it now |
// because it may cause GC. To avoid this issue, we return an |
// internal error which will make sure we do not update any |