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

Unified Diff: src/objects.h

Issue 107933005: Templatise type representation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index f09d58fc5dc53dc5a3b99abb8fd76e944373f8a9..da580aa1e926ee10d00e9de7c4b1d8188d4c71ea 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -880,7 +880,11 @@ class Failure;
class FixedArrayBase;
class ObjectVisitor;
class StringStream;
-class Type;
+// Work around the fact that we cannot just say "class Type;" anymore, because
+// C++ is a pile of garbage with no proper compositionality or abstraction.
titzer 2013/12/17 09:13:07 Agree with the sentiment--and glad to have a comme
rossberg 2013/12/17 09:33:13 Had to vent. I literally wasted a day trying to fi
+template<class> class TypeImpl;
+class HeapTypeConfig;
+typedef TypeImpl<HeapTypeConfig> Type;
// A template-ized version of the IsXXX functions.

Powered by Google App Engine
This is Rietveld 408576698