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

Side by Side Diff: src/objects.h

Issue 249056: Fix lint errors. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 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/arguments.h ('k') | no next file » | 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 4205 matching lines...) Expand 10 before | Expand all | Expand 10 after
4216 static inline Map* SymbolMap(int length); 4216 static inline Map* SymbolMap(int length);
4217 private: 4217 private:
4218 DISALLOW_IMPLICIT_CONSTRUCTORS(ExternalTwoByteString); 4218 DISALLOW_IMPLICIT_CONSTRUCTORS(ExternalTwoByteString);
4219 }; 4219 };
4220 4220
4221 4221
4222 // Utility superclass for stack-allocated objects that must be updated 4222 // Utility superclass for stack-allocated objects that must be updated
4223 // on gc. It provides two ways for the gc to update instances, either 4223 // on gc. It provides two ways for the gc to update instances, either
4224 // iterating or updating after gc. 4224 // iterating or updating after gc.
4225 class Relocatable BASE_EMBEDDED { 4225 class Relocatable BASE_EMBEDDED {
4226 public: 4226 public:
4227 inline Relocatable() : prev_(top_) { top_ = this; } 4227 inline Relocatable() : prev_(top_) { top_ = this; }
4228 virtual ~Relocatable() { ASSERT_EQ(top_, this); top_ = prev_; } 4228 virtual ~Relocatable() {
4229 ASSERT_EQ(top_, this);
4230 top_ = prev_; }
iposva 2009/10/01 07:00:26 } on a new line
Søren Thygesen Gjesse 2009/10/01 07:27:39 Sure.
4229 virtual void IterateInstance(ObjectVisitor* v) { } 4231 virtual void IterateInstance(ObjectVisitor* v) { }
4230 virtual void PostGarbageCollection() { } 4232 virtual void PostGarbageCollection() { }
4231 4233
4232 static void PostGarbageCollectionProcessing(); 4234 static void PostGarbageCollectionProcessing();
4233 static int ArchiveSpacePerThread(); 4235 static int ArchiveSpacePerThread();
4234 static char* ArchiveState(char* to); 4236 static char* ArchiveState(char* to);
4235 static char* RestoreState(char* from); 4237 static char* RestoreState(char* from);
4236 static void Iterate(ObjectVisitor* v); 4238 static void Iterate(ObjectVisitor* v);
4237 static void Iterate(ObjectVisitor* v, Relocatable* top); 4239 static void Iterate(ObjectVisitor* v, Relocatable* top);
4238 static char* Iterate(ObjectVisitor* v, char* t); 4240 static char* Iterate(ObjectVisitor* v, char* t);
4239 private: 4241 private:
4240 static Relocatable* top_; 4242 static Relocatable* top_;
4241 Relocatable* prev_; 4243 Relocatable* prev_;
4242 }; 4244 };
4243 4245
4244 4246
4245 // A flat string reader provides random access to the contents of a 4247 // A flat string reader provides random access to the contents of a
4246 // string independent of the character width of the string. The handle 4248 // string independent of the character width of the string. The handle
4247 // must be valid as long as the reader is being used. 4249 // must be valid as long as the reader is being used.
4248 class FlatStringReader : public Relocatable { 4250 class FlatStringReader : public Relocatable {
4249 public: 4251 public:
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
4877 } else { 4879 } else {
4878 value &= ~(1 << bit_position); 4880 value &= ~(1 << bit_position);
4879 } 4881 }
4880 return value; 4882 return value;
4881 } 4883 }
4882 }; 4884 };
4883 4885
4884 } } // namespace v8::internal 4886 } } // namespace v8::internal
4885 4887
4886 #endif // V8_OBJECTS_H_ 4888 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/arguments.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698