From 6e78598d773908e0a966723f0b5d26d9086826dc Mon Sep 17 00:00:00 2001 From: "ager@chromium.org" Date: Wed, 4 Mar 2009 07:42:39 +0000 Subject: [PATCH] Fix the 64-bit build. Implicit conversion from string constant to char* gives a warning. Using const char* instead. Review URL: http://codereview.chromium.org/40100 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1409 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/stub-cache.cc | 2 +- src/stub-cache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stub-cache.cc b/src/stub-cache.cc index 97d16d0cda..b7ef311979 100644 --- a/src/stub-cache.cc +++ b/src/stub-cache.cc @@ -889,7 +889,7 @@ Object* StubCompiler::CompileCallDebugPrepareStepIn(Code::Flags flags) { } -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()); diff --git a/src/stub-cache.h b/src/stub-cache.h index c922845def..05845e5966 100644 --- a/src/stub-cache.h +++ b/src/stub-cache.h @@ -362,7 +362,7 @@ class StubCompiler BASE_EMBEDDED { 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_; }