Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 751798d80365bc859a18a2782fd5e67ddbf8e88f..1ec00d49bb30e1f7154b780ca45743b026807ea7 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -177,12 +177,12 @@ Handle<Code> StubCache::ComputeLoadNonexistent(Handle<Name> name, |
Handle<Name> cache_name = factory()->empty_string(); |
Handle<JSObject> current; |
Handle<Object> next = receiver; |
- Handle<GlobalObject> global; |
+ Handle<JSGlobalObject> global; |
do { |
current = Handle<JSObject>::cast(next); |
next = Handle<Object>(current->GetPrototype(), isolate_); |
- if (current->IsGlobalObject()) { |
- global = Handle<GlobalObject>::cast(current); |
+ if (current->IsJSGlobalObject()) { |
+ global = Handle<JSGlobalObject>::cast(current); |
cache_name = name; |
} else if (!current->HasFastProperties()) { |
cache_name = name; |
@@ -1213,7 +1213,7 @@ void LoadStubCompiler::NonexistentHandlerFrontend( |
Handle<JSObject> last, |
Handle<Name> name, |
Label* success, |
- Handle<GlobalObject> global) { |
+ Handle<JSGlobalObject> global) { |
Label miss; |
Register holder = |