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

Side by Side Diff: src/objects.h

Issue 1706013: Changing string length field type from int to SMI. It will make it be a regu... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
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 | Annotate | Revision Log
« 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 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after
4070 // Dispatched behavior. 4070 // Dispatched behavior.
4071 void StringShortPrint(StringStream* accumulator); 4071 void StringShortPrint(StringStream* accumulator);
4072 #ifdef DEBUG 4072 #ifdef DEBUG
4073 void StringPrint(); 4073 void StringPrint();
4074 void StringVerify(); 4074 void StringVerify();
4075 #endif 4075 #endif
4076 inline bool IsFlat(); 4076 inline bool IsFlat();
4077 4077
4078 // Layout description. 4078 // Layout description.
4079 static const int kLengthOffset = HeapObject::kHeaderSize; 4079 static const int kLengthOffset = HeapObject::kHeaderSize;
4080 static const int kHashFieldOffset = kLengthOffset + kIntSize; 4080 static const int kHashFieldOffset = kLengthOffset + kPointerSize;
4081 static const int kSize = kHashFieldOffset + kIntSize; 4081 static const int kSize = kHashFieldOffset + kIntSize;
4082 // Notice: kSize is not pointer-size aligned if pointers are 64-bit. 4082 // Notice: kSize is not pointer-size aligned if pointers are 64-bit.
4083 4083
4084 // Maximum number of characters to consider when trying to convert a string 4084 // Maximum number of characters to consider when trying to convert a string
4085 // value into an array index. 4085 // value into an array index.
4086 static const int kMaxArrayIndexSize = 10; 4086 static const int kMaxArrayIndexSize = 10;
4087 4087
4088 // Max ascii char code. 4088 // Max ascii char code.
4089 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar; 4089 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar;
4090 static const unsigned kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar; 4090 static const unsigned kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar;
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
5147 } else { 5147 } else {
5148 value &= ~(1 << bit_position); 5148 value &= ~(1 << bit_position);
5149 } 5149 }
5150 return value; 5150 return value;
5151 } 5151 }
5152 }; 5152 };
5153 5153
5154 } } // namespace v8::internal 5154 } } // namespace v8::internal
5155 5155
5156 #endif // V8_OBJECTS_H_ 5156 #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