Index: src/objects.h |
=================================================================== |
--- src/objects.h (revision 4897) |
+++ src/objects.h (working copy) |
@@ -491,10 +491,12 @@ |
TYPE_SWITCH_INFO_TYPE, |
SCRIPT_TYPE, |
CODE_CACHE_TYPE, |
-#ifdef ENABLE_DEBUGGER_SUPPORT |
+ // The following two instance types are only used when ENABLE_DEBUGGER_SUPPORT |
+ // is defined. However as include/v8.h contain some of the instance type |
+ // constants always having them avoids them getting different numbers |
+ // depending on whether ENABLE_DEBUGGER_SUPPORT is defined or not. |
DEBUG_INFO_TYPE, |
BREAK_POINT_INFO_TYPE, |
-#endif |
FIXED_ARRAY_TYPE, |
SHARED_FUNCTION_INFO_TYPE, |
@@ -528,6 +530,11 @@ |
}; |
+STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); |
+STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); |
+STATIC_CHECK(PROXY_TYPE == Internals::kProxyType); |
+ |
+ |
enum CompareResult { |
LESS = -1, |
EQUAL = 0, |