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

Unified Diff: src/type-info.h

Issue 1520001: Start using String type info: (Closed)
Patch Set: Review Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/type-info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-info.h
diff --git a/src/type-info.h b/src/type-info.h
index 1d82634092c5eaf121baf70ad536b0d5f51e3cf0..568437a9cee11bb4615e2a020beefe70c15f0f4f 100644
--- a/src/type-info.h
+++ b/src/type-info.h
@@ -156,6 +156,11 @@ class TypeInfo {
return ((type_ & kDoubleType) == kDoubleType);
}
+ inline bool IsString() {
+ ASSERT(type_ != kUninitializedType);
+ return ((type_ & kStringType) == kStringType);
+ }
+
inline bool IsUninitialized() {
return type_ == kUninitializedType;
}
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698