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

Side by Side Diff: runtime/vm/flow_graph_range_analysis_test.cc

Issue 1678203002: Remove more feature in 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/flow_graph_range_analysis.h" 5 #include "vm/flow_graph_range_analysis.h"
6 #include "vm/unit_test.h" 6 #include "vm/unit_test.h"
7 7
8 namespace dart { 8 namespace dart {
9 9
10 #ifndef PRODUCT
rmacnak 2016/02/08 22:42:36 Let's exclude just the prints.
Cutch 2016/02/08 23:07:55 Done.
10 11
11 TEST_CASE(RangeTests) { 12 TEST_CASE(RangeTests) {
12 Range* zero = new Range( 13 Range* zero = new Range(
13 RangeBoundary::FromConstant(0), 14 RangeBoundary::FromConstant(0),
14 RangeBoundary::FromConstant(0)); 15 RangeBoundary::FromConstant(0));
15 Range* positive = new Range( 16 Range* positive = new Range(
16 RangeBoundary::FromConstant(0), 17 RangeBoundary::FromConstant(0),
17 RangeBoundary::FromConstant(100)); 18 RangeBoundary::FromConstant(100));
18 Range* negative = new Range( 19 Range* negative = new Range(
19 RangeBoundary::FromConstant(-1), 20 RangeBoundary::FromConstant(-1),
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 RangeBoundary::FromConstant(1), 696 RangeBoundary::FromConstant(1),
696 p_infinity, 697 p_infinity,
697 size).IsMaximumOrAbove(size)); 698 size).IsMaximumOrAbove(size));
698 699
699 EXPECT(RangeBoundary::JoinMax( 700 EXPECT(RangeBoundary::JoinMax(
700 p_infinity, 701 p_infinity,
701 RangeBoundary::FromConstant(1), 702 RangeBoundary::FromConstant(1),
702 size).IsMaximumOrAbove(size)); 703 size).IsMaximumOrAbove(size));
703 } 704 }
704 705
706 #endif
707
705 } // namespace dart 708 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698