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

Side by Side Diff: src/objects.h

Issue 341079: * Do a GC in mksnapshot to get rid of some extraneous junk.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/mksnapshot.cc ('k') | src/serialize.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 2893 matching lines...) Expand 10 before | Expand all | Expand 10 after
2904 2904
2905 // Dispatched behavior. 2905 // Dispatched behavior.
2906 int CodeSize() { return SizeFor(body_size(), sinfo_size()); } 2906 int CodeSize() { return SizeFor(body_size(), sinfo_size()); }
2907 void CodeIterateBody(ObjectVisitor* v); 2907 void CodeIterateBody(ObjectVisitor* v);
2908 #ifdef DEBUG 2908 #ifdef DEBUG
2909 void CodePrint(); 2909 void CodePrint();
2910 void CodeVerify(); 2910 void CodeVerify();
2911 #endif 2911 #endif
2912 // Code entry points are aligned to 32 bytes. 2912 // Code entry points are aligned to 32 bytes.
2913 static const int kCodeAlignment = 32; 2913 static const int kCodeAlignment = 32;
2914 static const int kCodeAlignmentBits = 5;
2914 static const int kCodeAlignmentMask = kCodeAlignment - 1; 2915 static const int kCodeAlignmentMask = kCodeAlignment - 1;
2915 2916
2916 // Layout description. 2917 // Layout description.
2917 static const int kInstructionSizeOffset = HeapObject::kHeaderSize; 2918 static const int kInstructionSizeOffset = HeapObject::kHeaderSize;
2918 static const int kRelocationSizeOffset = kInstructionSizeOffset + kIntSize; 2919 static const int kRelocationSizeOffset = kInstructionSizeOffset + kIntSize;
2919 static const int kSInfoSizeOffset = kRelocationSizeOffset + kIntSize; 2920 static const int kSInfoSizeOffset = kRelocationSizeOffset + kIntSize;
2920 static const int kFlagsOffset = kSInfoSizeOffset + kIntSize; 2921 static const int kFlagsOffset = kSInfoSizeOffset + kIntSize;
2921 static const int kKindSpecificFlagsOffset = kFlagsOffset + kIntSize; 2922 static const int kKindSpecificFlagsOffset = kFlagsOffset + kIntSize;
2922 // Add padding to align the instruction start following right after 2923 // Add padding to align the instruction start following right after
2923 // the Code object header. 2924 // the Code object header.
(...skipping 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after
5144 } else { 5145 } else {
5145 value &= ~(1 << bit_position); 5146 value &= ~(1 << bit_position);
5146 } 5147 }
5147 return value; 5148 return value;
5148 } 5149 }
5149 }; 5150 };
5150 5151
5151 } } // namespace v8::internal 5152 } } // namespace v8::internal
5152 5153
5153 #endif // V8_OBJECTS_H_ 5154 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mksnapshot.cc ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698