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

Side by Side Diff: src/objects.h

Issue 20499: Experimental: merge from bleeding edge 1298:1307. Port the eval... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
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
« no previous file with comments | « src/jsregexp.cc ('k') | src/regexp-macro-assembler-irregexp-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3220 matching lines...) Expand 10 before | Expand all | Expand 10 after
3231 static const int kSize = kLengthOffset + kIntSize; 3231 static const int kSize = kLengthOffset + kIntSize;
3232 3232
3233 // Limits on sizes of different types of strings. 3233 // Limits on sizes of different types of strings.
3234 static const int kMaxShortStringSize = 63; 3234 static const int kMaxShortStringSize = 63;
3235 static const int kMaxMediumStringSize = 16383; 3235 static const int kMaxMediumStringSize = 16383;
3236 3236
3237 static const int kMaxArrayIndexSize = 10; 3237 static const int kMaxArrayIndexSize = 10;
3238 3238
3239 // Max ascii char code. 3239 // Max ascii char code.
3240 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar; 3240 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar;
3241 static const unsigned kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar;
3241 static const int kMaxUC16CharCode = 0xffff; 3242 static const int kMaxUC16CharCode = 0xffff;
3242 3243
3243 // Minimum length for a cons or sliced string. 3244 // Minimum length for a cons or sliced string.
3244 static const int kMinNonFlatLength = 13; 3245 static const int kMinNonFlatLength = 13;
3245 3246
3246 // Mask constant for checking if a string has a computed hash code 3247 // Mask constant for checking if a string has a computed hash code
3247 // and if it is an array index. The least significant bit indicates 3248 // and if it is an array index. The least significant bit indicates
3248 // whether a hash code has been computed. If the hash code has been 3249 // whether a hash code has been computed. If the hash code has been
3249 // computed the 2nd bit tells whether the string can be used as an 3250 // computed the 2nd bit tells whether the string can be used as an
3250 // array index. 3251 // array index.
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
4235 } else { 4236 } else {
4236 value &= ~(1 << bit_position); 4237 value &= ~(1 << bit_position);
4237 } 4238 }
4238 return value; 4239 return value;
4239 } 4240 }
4240 }; 4241 };
4241 4242
4242 } } // namespace v8::internal 4243 } } // namespace v8::internal
4243 4244
4244 #endif // V8_OBJECTS_H_ 4245 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/regexp-macro-assembler-irregexp-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698