Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 4a200b9e3b6d72aec879042803800a57d5c577bc..04b4c1287d022c5d8925a7c78e7c9cde8eee2d5d 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -900,7 +900,7 @@ void LoadStubCompiler::NonexistentHandlerFrontend(Handle<HeapType> type, |
// check that the global property cell is empty. |
if (last_map->IsJSGlobalObjectMap()) { |
Handle<JSGlobalObject> global = last.is_null() |
- ? Handle<JSGlobalObject>::cast(type->AsConstant()) |
+ ? Handle<JSGlobalObject>::cast(type->AsConstant()->Value()) |
: Handle<JSGlobalObject>::cast(last); |
GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss); |
} |