Fix build (someone tell gcc you can't take the address of a static

const int and someone tell MSVC it's OK to define a static const int
in a .cc file).
Review URL: http://codereview.chromium.org/13656

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@942 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
erik.corry@gmail.com 2008-12-09 09:17:41 +00:00
parent 7b4b4959c8
commit df727ffd43
2 changed files with 6 additions and 6 deletions

View File

@ -1715,9 +1715,12 @@ static void EmitCharClass(RegExpMacroAssembler* macro_assembler,
bool check_offset, bool check_offset,
bool ascii) { bool ascii) {
ZoneList<CharacterRange>* ranges = cc->ranges(); ZoneList<CharacterRange>* ranges = cc->ranges();
const int max_char = ascii ? int max_char;
String::kMaxAsciiCharCode : if (ascii) {
String::kMaxUC16CharCode; max_char = String::kMaxAsciiCharCode;
} else {
max_char = String::kMaxUC16CharCode;
}
Label success; Label success;

View File

@ -48,9 +48,6 @@ namespace v8 { namespace internal {
const int kGetterIndex = 0; const int kGetterIndex = 0;
const int kSetterIndex = 1; const int kSetterIndex = 1;
const int String::kMaxAsciiCharCode;
const int String::kMaxUC16CharCode;
bool Object::IsInstanceOf(FunctionTemplateInfo* expected) { bool Object::IsInstanceOf(FunctionTemplateInfo* expected) {
// There is a constraint on the object; check // There is a constraint on the object; check
if (!this->IsJSObject()) return false; if (!this->IsJSObject()) return false;