| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index eec5baf0c26bc9fce0fdf5da6711a27ceed24b2e..dc2c3406a6aead526238893d801b8abc8efe565b 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -35,6 +35,7 @@
|
| #include "gdb-jit.h"
|
| #include "ic-inl.h"
|
| #include "stub-cache.h"
|
| +#include "type-info.h"
|
| #include "vm-state-inl.h"
|
|
|
| namespace v8 {
|
| @@ -1100,6 +1101,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
|
| @@ -1110,7 +1114,7 @@ Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags,
|
| Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags,
|
| Handle<Name> name) {
|
| return (FLAG_print_code_stubs && !name.is_null() && name->IsString())
|
| - ? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString())
|
| + ? GetCodeWithFlags(flags, Handle<String>::cast(name)->ToCString().get())
|
| : GetCodeWithFlags(flags, NULL);
|
| }
|
|
|
|
|