| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index cb8d29402be83d460b99e06ac739304fc4827f7e..ca4b8c94e1d0fe88c750e6d1164150b6ac641ac1 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -297,9 +297,7 @@ Handle<Code> StubCache::ComputeCallConstant(int argc,
|
| CodeCreateEvent(CALL_LOGGER_TAG(kind, CALL_IC_TAG), *code, *name));
|
| GDBJIT(AddCode(GDBJITInterface::CALL_IC, *name, *code));
|
|
|
| - if (CallStubCompiler::CanBeCached(function)) {
|
| - HeapObject::UpdateMapCodeCache(stub_holder, name, code);
|
| - }
|
| + HeapObject::UpdateMapCodeCache(stub_holder, name, code);
|
| return code;
|
| }
|
|
|
| @@ -402,9 +400,7 @@ Handle<Code> StubCache::ComputeCallGlobal(int argc,
|
| PROFILE(isolate(),
|
| CodeCreateEvent(CALL_LOGGER_TAG(kind, CALL_IC_TAG), *code, *name));
|
| GDBJIT(AddCode(GDBJITInterface::CALL_IC, *name, *code));
|
| - if (CallStubCompiler::CanBeCached(function)) {
|
| - HeapObject::UpdateMapCodeCache(receiver, name, code);
|
| - }
|
| + HeapObject::UpdateMapCodeCache(receiver, name, code);
|
| return code;
|
| }
|
|
|
| @@ -1902,18 +1898,6 @@ bool CallStubCompiler::HasCustomCallGenerator(Handle<JSFunction> function) {
|
| }
|
|
|
|
|
| -bool CallStubCompiler::CanBeCached(Handle<JSFunction> function) {
|
| - if (function->shared()->HasBuiltinFunctionId()) {
|
| - BuiltinFunctionId id = function->shared()->builtin_function_id();
|
| -#define CALL_GENERATOR_CASE(name) if (id == k##name) return false;
|
| - SITE_SPECIFIC_CALL_GENERATORS(CALL_GENERATOR_CASE)
|
| -#undef CALL_GENERATOR_CASE
|
| - }
|
| -
|
| - return true;
|
| -}
|
| -
|
| -
|
| Handle<Code> CallStubCompiler::CompileCustomCall(
|
| Handle<Object> object,
|
| Handle<JSObject> holder,
|
|
|