Commit df727ffd authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

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
parent 7b4b4959
...@@ -1715,9 +1715,12 @@ static void EmitCharClass(RegExpMacroAssembler* macro_assembler, ...@@ -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;
......
...@@ -48,9 +48,6 @@ namespace v8 { namespace internal { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment