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

Unified Diff: src/compiler.cc

Issue 2754573002: 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/ast/ast-numbering.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 4ab18d313d6783cddd3c0fa03614a9ca889fb091..fded1e2b86e014c35828cf823df420d5d2090dc1 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -478,23 +478,9 @@
Compiler::EagerInnerFunctionLiterals* eager_literals) {
RuntimeCallTimerScope runtimeTimer(parse_info->isolate(),
&RuntimeCallStats::CompileRenumber);
-
- // CollectTypeProfile uses its own feedback slots. If we have existing
- // FeedbackMetadata, we can only collect type profile, if the feedback vector
- // has the appropriate slots.
- bool collect_type_profile;
- if (parse_info->shared_info().is_null() ||
- parse_info->shared_info()->feedback_metadata()->length() == 0) {
- collect_type_profile = FLAG_type_profile;
- } else {
- collect_type_profile =
- parse_info->shared_info()->feedback_metadata()->HasTypeProfileSlot();
- }
-
if (!AstNumbering::Renumber(
parse_info->isolate()->stack_guard()->real_climit(),
- parse_info->zone(), parse_info->literal(), eager_literals,
- collect_type_profile)) {
+ parse_info->zone(), parse_info->literal(), eager_literals)) {
return false;
}
if (!parse_info->shared_info().is_null()) {
« no previous file with comments | « src/ast/ast-numbering.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698