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

Unified Diff: runtime/vm/report.cc

Issue 1660063002: Remove many features when building product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « runtime/vm/profiler_test.cc ('k') | runtime/vm/report_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/report.cc
diff --git a/runtime/vm/report.cc b/runtime/vm/report.cc
index 196b47112d82227050652529551b7ed2b785694d..42a47d9d2598ff6425a106d48c450d79a0db614b 100644
--- a/runtime/vm/report.cc
+++ b/runtime/vm/report.cc
@@ -249,6 +249,9 @@ void Report::JSWarningFromFrame(StackFrame* caller_frame, const char* msg) {
void Report::TraceJSWarning(const Script& script,
TokenPosition token_pos,
const String& message) {
+ if (!FLAG_support_service) {
+ return;
+ }
const int64_t micros = OS::GetCurrentTimeMicros();
Isolate* isolate = Isolate::Current();
TraceBuffer* trace_buffer = isolate->trace_buffer();
« no previous file with comments | « runtime/vm/profiler_test.cc ('k') | runtime/vm/report_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698