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

Unified Diff: tools/slow_assert.py

Issue 11014013: Added slow_assert macro and flag for slow development assertions in the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« runtime/vm/flow_graph_inliner.cc ('K') | « runtime/vm/flow_graph_inliner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/slow_assert.py
diff --git a/tools/slow_assert.py b/tools/slow_assert.py
new file mode 100644
index 0000000000000000000000000000000000000000..4f541263257c30020873eb17e23d8005a5d95302
--- /dev/null
+++ b/tools/slow_assert.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+import subprocess
+import sys
+
+
+def Main():
+ dart = sys.argv[1]
+ args = sys.argv[2:]
+ if args[0].startswith("--"):
+ command = [dart, "--slow-assert"] + args
+ else:
+ ## We are running a C++ test for the VM.
+ command = [dart] + args
+ exit_code = subprocess.call(command)
+ return exit_code
+
+
+if __name__ == '__main__':
+ sys.exit(Main())
« runtime/vm/flow_graph_inliner.cc ('K') | « runtime/vm/flow_graph_inliner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698