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
bool check_offset,
bool ascii) {
ZoneList<CharacterRange>* ranges = cc->ranges();
- const int max_char = ascii ?
- String::kMaxAsciiCharCode :
- String::kMaxUC16CharCode;
+ int max_char;
+ if (ascii) {
+ max_char = String::kMaxAsciiCharCode;
+ } else {
+ max_char = String::kMaxUC16CharCode;
+ }
Label success;
const int kGetterIndex = 0;
const int kSetterIndex = 1;
-const int String::kMaxAsciiCharCode;
-const int String::kMaxUC16CharCode;
-
bool Object::IsInstanceOf(FunctionTemplateInfo* expected) {
// There is a constraint on the object; check
if (!this->IsJSObject()) return false;