Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: src/objects.h

Issue 21450: Irregexp:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3222 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 static const int kSize = kLengthOffset + kIntSize; 3233 static const int kSize = kLengthOffset + kIntSize;
3234 3234
3235 // Limits on sizes of different types of strings. 3235 // Limits on sizes of different types of strings.
3236 static const int kMaxShortStringSize = 63; 3236 static const int kMaxShortStringSize = 63;
3237 static const int kMaxMediumStringSize = 16383; 3237 static const int kMaxMediumStringSize = 16383;
3238 3238
3239 static const int kMaxArrayIndexSize = 10; 3239 static const int kMaxArrayIndexSize = 10;
3240 3240
3241 // Max ascii char code. 3241 // Max ascii char code.
3242 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar; 3242 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar;
3243 static const unsigned kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar;
3243 static const int kMaxUC16CharCode = 0xffff; 3244 static const int kMaxUC16CharCode = 0xffff;
3244 3245
3245 // Minimum length for a cons or sliced string. 3246 // Minimum length for a cons or sliced string.
3246 static const int kMinNonFlatLength = 13; 3247 static const int kMinNonFlatLength = 13;
3247 3248
3248 // Mask constant for checking if a string has a computed hash code 3249 // Mask constant for checking if a string has a computed hash code
3249 // and if it is an array index. The least significant bit indicates 3250 // and if it is an array index. The least significant bit indicates
3250 // whether a hash code has been computed. If the hash code has been 3251 // whether a hash code has been computed. If the hash code has been
3251 // computed the 2nd bit tells whether the string can be used as an 3252 // computed the 2nd bit tells whether the string can be used as an
3252 // array index. 3253 // array index.
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
4237 } else { 4238 } else {
4238 value &= ~(1 << bit_position); 4239 value &= ~(1 << bit_position);
4239 } 4240 }
4240 return value; 4241 return value;
4241 } 4242 }
4242 }; 4243 };
4243 4244
4244 } } // namespace v8::internal 4245 } } // namespace v8::internal
4245 4246
4246 #endif // V8_OBJECTS_H_ 4247 #endif // V8_OBJECTS_H_
OLDNEW
« src/jsregexp.cc ('K') | « src/jsregexp.cc ('k') | test/mjsunit/regexp-UC16.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698