| Index: vm/object.h
|
| ===================================================================
|
| --- vm/object.h (revision 10240)
|
| +++ vm/object.h (working copy)
|
| @@ -62,7 +62,8 @@
|
| reinterpret_cast<object*>(VMHandles::AllocateHandle(isolate)); \
|
| initializeHandle(obj, raw_ptr); \
|
| if (!obj->Is##object()) { \
|
| - FATAL("Handle check failed."); \
|
| + FATAL2("Handle check failed: saw %s expected %s", \
|
| + obj->ToCString(), #object); \
|
| } \
|
| return *obj; \
|
| } \
|
| @@ -86,7 +87,8 @@
|
| VMHandles::AllocateZoneHandle(isolate)); \
|
| initializeHandle(obj, raw_ptr); \
|
| if (!obj->Is##object()) { \
|
| - FATAL("Handle check failed."); \
|
| + FATAL2("Handle check failed: saw %s expected %s", \
|
| + obj->ToCString(), #object); \
|
| } \
|
| return *obj; \
|
| } \
|
|
|