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

Unified Diff: src/ic.cc

Issue 13655: Make Logger::SuspectReadEvent extract the class name from the object. (Closed)
Patch Set: Created 12 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 | src/log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index c0b762471b5addc9a41c3d7862eb4597ddec9a61..2dc9742a95578fc8495f546aa982d5c97b039aff 100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -514,11 +514,7 @@ Object* LoadIC::Load(State state, Handle<Object> object, Handle<String> name) {
if (FLAG_strict || is_contextual()) {
return ReferenceError("not_defined", name);
}
- String* class_name = object->IsJSObject()
- ? Handle<JSObject>::cast(object)->class_name()
- : Heap::empty_string();
- LOG(SuspectReadEvent(*name, class_name));
- USE(class_name);
+ LOG(SuspectReadEvent(*name, *object));
}
// Update inline cache and stub cache.
« no previous file with comments | « no previous file | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698