Reviewers: Christian Plesner Hansen, Description: Fix the 64-bit build. Implicit conversion from string constant to char* gives a warning. Using const char* instead.
Please review this at http://codereview.chromium.org/40100 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/stub-cache.h M src/stub-cache.cc Index: src/stub-cache.cc =================================================================== --- src/stub-cache.cc (revision 1408) +++ src/stub-cache.cc (working copy) @@ -889,7 +889,7 @@ } -Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, char* name) { +Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, const char* name) { CodeDesc desc; masm_.GetCode(&desc); Object* result = Heap::CreateCode(desc, NULL, flags, masm_.CodeObject()); Index: src/stub-cache.h =================================================================== --- src/stub-cache.h (revision 1408) +++ src/stub-cache.h (working copy) @@ -362,7 +362,7 @@ static void GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind); protected: - Object* GetCodeWithFlags(Code::Flags flags, char* name); + Object* GetCodeWithFlags(Code::Flags flags, const char* name); Object* GetCodeWithFlags(Code::Flags flags, String* name); MacroAssembler* masm() { return &masm_; } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
