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

Unified Diff: src/objects-inl.h

Issue 9244: Fix place where linter complains about lonely {... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
===================================================================
--- src/objects-inl.h (revision 676)
+++ src/objects-inl.h (working copy)
@@ -185,31 +185,22 @@
StringShape::StringShape(String* str)
- : type_(str->map()->instance_type())
-#ifdef DEBUG
- , valid_(true)
-#endif // def DEBUG
- {
+ : type_(str->map()->instance_type()) {
+ set_valid();
ASSERT((type_ & kIsNotStringMask) == kStringTag);
}
StringShape::StringShape(Map* map)
- : type_(map->instance_type())
-#ifdef DEBUG
- , valid_(true)
-#endif // def DEBUG
- {
+ : type_(map->instance_type()) {
+ set_valid();
ASSERT((type_ & kIsNotStringMask) == kStringTag);
}
StringShape::StringShape(InstanceType t)
- : type_(static_cast<uint32_t>(t))
-#ifdef DEBUG
- , valid_(true)
-#endif // def DEBUG
- {
+ : type_(static_cast<uint32_t>(t)) {
+ set_valid();
ASSERT((type_ & kIsNotStringMask) == kStringTag);
}
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698