diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 52043c8f98e..1f513f44315 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -745,7 +745,7 @@ config("no_optimize") { ldflags = common_optimize_on_ldflags } else { cflags = [ - "-O1", + "-O2", "-fdata-sections", "-ffunction-sections", ] diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn index e7c13da6f72..50ae8ce616f 100644 --- a/runtime/BUILD.gn +++ b/runtime/BUILD.gn @@ -163,7 +163,7 @@ config("dart_config") { ] if (dart_debug) { - cflags += [ "-O1" ] + cflags += [ "-O2" ] } else { cflags += [ "-O3" ] } diff --git a/runtime/tests/vm/vm.status b/runtime/tests/vm/vm.status index 0a2934ac739..60dc0a98f29 100644 --- a/runtime/tests/vm/vm.status +++ b/runtime/tests/vm/vm.status @@ -31,6 +31,23 @@ cc/Sleep: Pass, Fail dart/data_uri_import_test/none: SkipByDesign [ $mode == debug ] +cc/Profiler_ArrayAllocation: Fail # 28304 +cc/Profiler_BasicSourcePosition: Fail # 28304 +cc/Profiler_BasicSourcePositionOptimized: Fail # 28304 +cc/Profiler_BinaryOperatorSourcePosition: Fail # 28304 +cc/Profiler_BinaryOperatorSourcePositionOptimized: Fail # 28304 +cc/Profiler_ChainedSamples: Fail # 28304 +cc/Profiler_ClosureAllocation: Fail # 28304 +cc/Profiler_CodeTicks: Fail # 28304 +cc/Profiler_ContextAllocation: Fail # 28304 +cc/Profiler_FunctionInline: Fail # 28304 +cc/Profiler_FunctionTicks: Fail # 28304 +cc/Profiler_SourcePosition: Fail # 28304 +cc/Profiler_SourcePositionOptimized: Fail # 28304 +cc/Profiler_ToggleRecordAllocation: Fail # 28304 +cc/Profiler_TrivialRecordAllocation: Fail # 28304 +cc/Profiler_TypedArrayAllocation: Fail # 28304 + # This is a benchmark that is not informative in debug mode. cc/CorelibIsolateStartup: Skip # Negative tests of VerifiedMemory should crash iff in DEBUG mode.