| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 5909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5920 // For use during stack traces. Performs rudimentary sanity check. | 5920 // For use during stack traces. Performs rudimentary sanity check. |
| 5921 bool LooksValid(); | 5921 bool LooksValid(); |
| 5922 | 5922 |
| 5923 // Dispatched behavior. | 5923 // Dispatched behavior. |
| 5924 void StringShortPrint(StringStream* accumulator); | 5924 void StringShortPrint(StringStream* accumulator); |
| 5925 #ifdef OBJECT_PRINT | 5925 #ifdef OBJECT_PRINT |
| 5926 inline void StringPrint() { | 5926 inline void StringPrint() { |
| 5927 StringPrint(stdout); | 5927 StringPrint(stdout); |
| 5928 } | 5928 } |
| 5929 void StringPrint(FILE* out); | 5929 void StringPrint(FILE* out); |
| 5930 |
| 5931 char* ToAsciiArray(); |
| 5930 #endif | 5932 #endif |
| 5931 #ifdef DEBUG | 5933 #ifdef DEBUG |
| 5932 void StringVerify(); | 5934 void StringVerify(); |
| 5933 #endif | 5935 #endif |
| 5934 inline bool IsFlat(); | 5936 inline bool IsFlat(); |
| 5935 | 5937 |
| 5936 // Layout description. | 5938 // Layout description. |
| 5937 static const int kLengthOffset = HeapObject::kHeaderSize; | 5939 static const int kLengthOffset = HeapObject::kHeaderSize; |
| 5938 static const int kHashFieldOffset = kLengthOffset + kPointerSize; | 5940 static const int kHashFieldOffset = kLengthOffset + kPointerSize; |
| 5939 static const int kSize = kHashFieldOffset + kPointerSize; | 5941 static const int kSize = kHashFieldOffset + kPointerSize; |
| (...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7254 } else { | 7256 } else { |
| 7255 value &= ~(1 << bit_position); | 7257 value &= ~(1 << bit_position); |
| 7256 } | 7258 } |
| 7257 return value; | 7259 return value; |
| 7258 } | 7260 } |
| 7259 }; | 7261 }; |
| 7260 | 7262 |
| 7261 } } // namespace v8::internal | 7263 } } // namespace v8::internal |
| 7262 | 7264 |
| 7263 #endif // V8_OBJECTS_H_ | 7265 #endif // V8_OBJECTS_H_ |
| OLD | NEW |