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

Unified Diff: src/isolate.cc

Issue 2765813002: [debug] refactor code coverage to use enum for mode. (Closed)
Patch Set: fix d8 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/isolate.h ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 1332ad0c71c6ad7f0e5c41abee864f73acc682f1..eded6d0bab27d76d14341a0b680f2cfe317d835d 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2990,7 +2990,7 @@ Map* Isolate::get_initial_js_array_map(ElementsKind kind) {
bool Isolate::use_crankshaft() {
return FLAG_opt && FLAG_crankshaft && !serializer_enabled_ &&
- CpuFeatures::SupportsCrankshaft() && !IsCodeCoverageEnabled();
+ CpuFeatures::SupportsCrankshaft() && !is_precise_count_code_coverage();
}
bool Isolate::NeedsSourcePositionsForProfiling() const {
@@ -2999,10 +2999,6 @@ bool Isolate::NeedsSourcePositionsForProfiling() const {
debug_->is_active() || logger_->is_logging();
}
-bool Isolate::IsCodeCoverageEnabled() {
- return heap()->code_coverage_list()->IsArrayList();
-}
-
void Isolate::SetCodeCoverageList(Object* value) {
DCHECK(value->IsUndefined(this) || value->IsArrayList());
heap()->set_code_coverage_list(value);
« no previous file with comments | « src/isolate.h ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698