Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index a562ace477a66ae99fc8d5cd638ebbad8817791e..6e68314be7ebd9299ceda913e2d95737e3641c40 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 |