Author: [email protected]
Date: Tue Mar 3 23:42:39 2009
New Revision: 1409
Modified:
branches/bleeding_edge/src/stub-cache.cc
branches/bleeding_edge/src/stub-cache.h
Log:
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
Modified: branches/bleeding_edge/src/stub-cache.cc
==============================================================================
--- branches/bleeding_edge/src/stub-cache.cc (original)
+++ branches/bleeding_edge/src/stub-cache.cc Tue Mar 3 23:42:39 2009
@@ -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());
Modified: branches/bleeding_edge/src/stub-cache.h
==============================================================================
--- branches/bleeding_edge/src/stub-cache.h (original)
+++ branches/bleeding_edge/src/stub-cache.h Tue Mar 3 23:42:39 2009
@@ -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
-~----------~----~----~----~------~----~------~--~---