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

Unified Diff: src/runtime/runtime-object.cc

Issue 2745413006: Revert of Collect type profile for DevTools. (Closed)
Patch Set: Created 3 years, 9 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/runtime/runtime.h ('k') | test/inspector/type-profile/collect-type-profile.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-object.cc
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
index 9c52a1f626739eabed973ffff5168f3c021704de..7d301bfa20f96235fd181e96bc00bc7e3143bff9 100644
--- a/src/runtime/runtime-object.cc
+++ b/src/runtime/runtime-object.cc
@@ -691,32 +691,6 @@
return *object;
}
-RUNTIME_FUNCTION(Runtime_CollectTypeProfile) {
- HandleScope scope(isolate);
- DCHECK_EQ(4, args.length());
- CONVERT_ARG_HANDLE_CHECKED(String, name, 0);
- CONVERT_ARG_HANDLE_CHECKED(Object, value, 1);
- CONVERT_ARG_HANDLE_CHECKED(FeedbackVector, vector, 2);
- CONVERT_SMI_ARG_CHECKED(index, 3);
-
- DCHECK(FLAG_type_profile);
-
- Handle<Name> type = Object::TypeOf(isolate, value);
- if (value->IsJSReceiver()) {
- Handle<JSReceiver> object = Handle<JSReceiver>::cast(value);
- type = JSReceiver::GetConstructorName(object);
- }
-
- CollectTypeProfileNexus nexus(vector, vector->ToSlot(index));
- nexus.Collect(type);
-
- PrintF("%s\n", name->ToCString().get());
- nexus.Print();
- PrintF("\n");
-
- return *name;
-}
-
// Return property without being observable by accessors or interceptors.
RUNTIME_FUNCTION(Runtime_GetDataProperty) {
HandleScope scope(isolate);
« no previous file with comments | « src/runtime/runtime.h ('k') | test/inspector/type-profile/collect-type-profile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698