Index: src/objects-debug.cc |
=================================================================== |
--- src/objects-debug.cc (revision 2285) |
+++ src/objects-debug.cc (working copy) |
@@ -152,7 +152,9 @@ |
case SHARED_FUNCTION_INFO_TYPE: |
SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(); |
break; |
- |
+ case JS_GLOBAL_PROPERTY_CELL_TYPE: |
+ JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellPrint(); |
+ break; |
#define MAKE_STRUCT_CASE(NAME, Name, name) \ |
case NAME##_TYPE: \ |
Name::cast(this)->Name##Print(); \ |
@@ -214,6 +216,9 @@ |
case JS_BUILTINS_OBJECT_TYPE: |
JSBuiltinsObject::cast(this)->JSBuiltinsObjectVerify(); |
break; |
+ case JS_GLOBAL_PROPERTY_CELL_TYPE: |
+ JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellVerify(); |
+ break; |
case JS_ARRAY_TYPE: |
JSArray::cast(this)->JSArrayVerify(); |
break; |
@@ -392,6 +397,7 @@ |
case JS_OBJECT_TYPE: return "JS_OBJECT"; |
case JS_CONTEXT_EXTENSION_OBJECT_TYPE: return "JS_CONTEXT_EXTENSION_OBJECT"; |
case ODDBALL_TYPE: return "ODDBALL"; |
+ case JS_GLOBAL_PROPERTY_CELL_TYPE: return "JS_GLOBAL_PROPERTY_CELL"; |
case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO"; |
case JS_FUNCTION_TYPE: return "JS_FUNCTION"; |
case CODE_TYPE: return "CODE"; |
@@ -428,6 +434,9 @@ |
if (is_undetectable()) { |
PrintF(" - undetectable\n"); |
} |
+ if (needs_loading()) { |
+ PrintF(" - needs_loading\n"); |
+ } |
if (has_instance_call_handler()) { |
PrintF(" - instance_call_handler\n"); |
} |
@@ -653,6 +662,17 @@ |
} |
+void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() { |
+ CHECK(IsJSGlobalPropertyCell()); |
+ VerifyObjectField(kValueOffset); |
+} |
+ |
+ |
+void JSGlobalPropertyCell::JSGlobalPropertyCellPrint() { |
+ HeapObject::PrintHeader("JSGlobalPropertyCell"); |
+} |
+ |
+ |
void Code::CodePrint() { |
HeapObject::PrintHeader("Code"); |
#ifdef ENABLE_DISASSEMBLER |