| 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 5933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5944 // For use during stack traces. Performs rudimentary sanity check. | 5944 // For use during stack traces. Performs rudimentary sanity check. |
| 5945 bool LooksValid(); | 5945 bool LooksValid(); |
| 5946 | 5946 |
| 5947 // Dispatched behavior. | 5947 // Dispatched behavior. |
| 5948 void StringShortPrint(StringStream* accumulator); | 5948 void StringShortPrint(StringStream* accumulator); |
| 5949 #ifdef OBJECT_PRINT | 5949 #ifdef OBJECT_PRINT |
| 5950 inline void StringPrint() { | 5950 inline void StringPrint() { |
| 5951 StringPrint(stdout); | 5951 StringPrint(stdout); |
| 5952 } | 5952 } |
| 5953 void StringPrint(FILE* out); | 5953 void StringPrint(FILE* out); |
| 5954 | |
| 5955 char* ToAsciiArray(); | |
| 5956 #endif | 5954 #endif |
| 5957 #ifdef DEBUG | 5955 #ifdef DEBUG |
| 5958 void StringVerify(); | 5956 void StringVerify(); |
| 5959 #endif | 5957 #endif |
| 5960 inline bool IsFlat(); | 5958 inline bool IsFlat(); |
| 5961 | 5959 |
| 5962 // Layout description. | 5960 // Layout description. |
| 5963 static const int kLengthOffset = HeapObject::kHeaderSize; | 5961 static const int kLengthOffset = HeapObject::kHeaderSize; |
| 5964 static const int kHashFieldOffset = kLengthOffset + kPointerSize; | 5962 static const int kHashFieldOffset = kLengthOffset + kPointerSize; |
| 5965 static const int kSize = kHashFieldOffset + kPointerSize; | 5963 static const int kSize = kHashFieldOffset + kPointerSize; |
| (...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7314 } else { | 7312 } else { |
| 7315 value &= ~(1 << bit_position); | 7313 value &= ~(1 << bit_position); |
| 7316 } | 7314 } |
| 7317 return value; | 7315 return value; |
| 7318 } | 7316 } |
| 7319 }; | 7317 }; |
| 7320 | 7318 |
| 7321 } } // namespace v8::internal | 7319 } } // namespace v8::internal |
| 7322 | 7320 |
| 7323 #endif // V8_OBJECTS_H_ | 7321 #endif // V8_OBJECTS_H_ |
| OLD | NEW |