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

Side by Side Diff: src/objects.h

Issue 1857001: Revert "Changing string length field type from int to SMI." (Closed)
Patch Set: Created 10 years, 7 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
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/objects-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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after
4056 // Dispatched behavior. 4056 // Dispatched behavior.
4057 void StringShortPrint(StringStream* accumulator); 4057 void StringShortPrint(StringStream* accumulator);
4058 #ifdef DEBUG 4058 #ifdef DEBUG
4059 void StringPrint(); 4059 void StringPrint();
4060 void StringVerify(); 4060 void StringVerify();
4061 #endif 4061 #endif
4062 inline bool IsFlat(); 4062 inline bool IsFlat();
4063 4063
4064 // Layout description. 4064 // Layout description.
4065 static const int kLengthOffset = HeapObject::kHeaderSize; 4065 static const int kLengthOffset = HeapObject::kHeaderSize;
4066 static const int kHashFieldOffset = kLengthOffset + kPointerSize; 4066 static const int kHashFieldOffset = kLengthOffset + kIntSize;
4067 static const int kSize = kHashFieldOffset + kIntSize; 4067 static const int kSize = kHashFieldOffset + kIntSize;
4068 // Notice: kSize is not pointer-size aligned if pointers are 64-bit. 4068 // Notice: kSize is not pointer-size aligned if pointers are 64-bit.
4069 4069
4070 // Maximum number of characters to consider when trying to convert a string 4070 // Maximum number of characters to consider when trying to convert a string
4071 // value into an array index. 4071 // value into an array index.
4072 static const int kMaxArrayIndexSize = 10; 4072 static const int kMaxArrayIndexSize = 10;
4073 4073
4074 // Max ascii char code. 4074 // Max ascii char code.
4075 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar; 4075 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar;
4076 static const unsigned kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar; 4076 static const unsigned kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar;
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
5133 } else { 5133 } else {
5134 value &= ~(1 << bit_position); 5134 value &= ~(1 << bit_position);
5135 } 5135 }
5136 return value; 5136 return value;
5137 } 5137 }
5138 }; 5138 };
5139 5139
5140 } } // namespace v8::internal 5140 } } // namespace v8::internal
5141 5141
5142 #endif // V8_OBJECTS_H_ 5142 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698