| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index eec5baf0c26bc9fce0fdf5da6711a27ceed24b2e..987c16119e267d0dfb57459fc1a0958d58ddbf6c 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -1100,6 +1100,9 @@ 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);
|
| + }
|
| #ifdef ENABLE_DISASSEMBLER
|
| if (FLAG_print_code_stubs) code->Disassemble(name);
|
| #endif
|
|
|