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

Unified Diff: src/objects-inl.h

Issue 1222543003: Micro-optimize lookupiterator: faster path for fast-mode objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « src/lookup-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 9f535ca64d4cd0475e3e74db6c75ad90fb337757..4b143c8b8b63b6996b99dd84b9e4c6e3fc834ad7 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1028,10 +1028,7 @@ bool Object::IsJSGlobalProxy() const {
bool Object::IsGlobalObject() const {
if (!IsHeapObject()) return false;
-
- InstanceType type = HeapObject::cast(this)->map()->instance_type();
- return type == JS_GLOBAL_OBJECT_TYPE ||
- type == JS_BUILTINS_OBJECT_TYPE;
+ return HeapObject::cast(this)->map()->IsGlobalObjectMap();
}
« no previous file with comments | « src/lookup-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698