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

Side by Side Diff: runtime/vm/debugger_api_impl_test.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "include/dart_mirrors_api.h" 5 #include "include/dart_mirrors_api.h"
6 #include "include/dart_tools_api.h" 6 #include "include/dart_tools_api.h"
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/lockers.h" 9 #include "vm/lockers.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 DECLARE_FLAG(bool, background_compilation); 14 DECLARE_FLAG(bool, background_compilation);
15 DECLARE_FLAG(int, optimization_counter_threshold); 15 DECLARE_FLAG(int, optimization_counter_threshold);
16 DECLARE_FLAG(bool, use_osr); 16 DECLARE_FLAG(bool, use_osr);
17 17
18 #ifndef PRODUCT
19
18 static bool breakpoint_hit = false; 20 static bool breakpoint_hit = false;
19 static int breakpoint_hit_counter = 0; 21 static int breakpoint_hit_counter = 0;
20 static Dart_Handle script_lib = NULL; 22 static Dart_Handle script_lib = NULL;
21 23
22 static const bool verbose = true; 24 static const bool verbose = true;
23 25
24 static void LoadScript(const char* source) { 26 static void LoadScript(const char* source) {
25 script_lib = TestCase::LoadTestScript(source, NULL); 27 script_lib = TestCase::LoadTestScript(source, NULL);
26 EXPECT_VALID(script_lib); 28 EXPECT_VALID(script_lib);
27 } 29 }
(...skipping 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 "[null, 1, 0, 1, 1, 5, 2, 9, 3, 11, 4, 24," 2322 "[null, 1, 0, 1, 1, 5, 2, 9, 3, 11, 4, 24,"
2321 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13," 2323 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13,"
2322 " null, 4, 13, 3, 14, 10," 2324 " null, 4, 13, 3, 14, 10,"
2323 " null, 5, 17, 5, 18, 9, 19, 12," 2325 " null, 5, 17, 5, 18, 9, 19, 12,"
2324 " null, 6, 21, 1," 2326 " null, 6, 21, 1,"
2325 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," 2327 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8,"
2326 " null, 9, 29, 1]", 2328 " null, 9, 29, 1]",
2327 tokens_cstr); 2329 tokens_cstr);
2328 } 2330 }
2329 2331
2332 #endif
rmacnak 2016/02/04 21:26:41 // !PRODUCT
2333
2330 } // namespace dart 2334 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698