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

Side by Side Diff: src/objects.h

Issue 7523052: String to ascii char array converter for debug mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added comment to clarify the purpose of this method. Created 9 years, 4 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 | « no previous file | src/objects-printer.cc » ('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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698