| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index 91cb3870df97e330b9c960655458fd06fd732c90..40c26bf99b2edcf5da1e5cb5fc5152ccd1d55aae 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -704,9 +704,7 @@ Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags,
|
| CodeDesc desc;
|
| masm_.GetCode(&desc);
|
| Handle<Code> code = factory()->NewCode(desc, flags, masm_.CodeObject());
|
| - if (code->has_major_key()) {
|
| - code->set_major_key(CodeStub::NoCache);
|
| - }
|
| + if (code->IsCodeStubOrIC()) code->set_stub_key(CodeStub::NoCacheKey());
|
| #ifdef ENABLE_DISASSEMBLER
|
| if (FLAG_print_code_stubs) {
|
| OFStream os(stdout);
|
|
|