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

Unified Diff: src/objects-inl.h

Issue 1496263002: Simplify check and remove outdated comment. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | « no previous file | 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 418df559da2480230dd6e3b6e5d813a6b146f6d9..3f92c595c7fd899bdc7d80b5c599d420691ac849 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5326,8 +5326,7 @@ bool Code::IsWeakObjectInOptimizedCode(Object* object) {
} else if (object->IsPropertyCell()) {
object = PropertyCell::cast(object)->value();
}
- if (object->IsJSObject() || object->IsJSProxy()) {
- // JSProxy is handled like JSObject because it can morph into one.
+ if (object->IsJSReceiver()) {
return FLAG_weak_embedded_objects_in_optimized_code;
}
if (object->IsFixedArray()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698