Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: src/objects-inl.h

Issue 10876067: Introduce global contexts to represent lexical global scope(s). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 46d98c6dfb99161a41982e2d2215d017b5520419..53f6b9e79d46d0bc606612908a121a8b33971e1c 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -576,7 +576,8 @@ bool Object::IsContext() {
map == heap->with_context_map() ||
map == heap->native_context_map() ||
map == heap->block_context_map() ||
- map == heap->module_context_map());
+ map == heap->module_context_map() ||
+ map == heap->global_context_map());
}
return false;
}
@@ -589,13 +590,6 @@ bool Object::IsNativeContext() {
}
-bool Object::IsModuleContext() {
- return Object::IsHeapObject() &&
- HeapObject::cast(this)->map() ==
- HeapObject::cast(this)->GetHeap()->module_context_map();
-}
-
-
bool Object::IsScopeInfo() {
return Object::IsHeapObject() &&
HeapObject::cast(this)->map() ==

Powered by Google App Engine
This is Rietveld 408576698