Fix GC Mole warning

R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/22815005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16196 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
danno@chromium.org 2013-08-14 17:03:19 +00:00
parent 6cd9ae7bc1
commit 6bcca144a9

View File

@ -3230,8 +3230,9 @@ class HConstant: public HTemplateInstruction<0> {
}
bool InstanceOf(Handle<Map> map) {
return handle()->IsJSObject() &&
Handle<JSObject>::cast(handle())->map() == *map;
Handle<Object> constant_object = handle();
return constant_object->IsJSObject() &&
Handle<JSObject>::cast(constant_object)->map() == *map;
}
bool IsSpecialDouble() const {