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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_interceptors.dart

Issue 806103003: cps-ir: Add support for intercepted calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bailout on special selectors. Created 6 years 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
Index: tests/compiler/dart2js/js_backend_cps_ir_interceptors.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_interceptors.dart b/tests/compiler/dart2js/js_backend_cps_ir_interceptors.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6640b9a65c9a3aa34c16c16211b7fadcba11c8c3
--- /dev/null
+++ b/tests/compiler/dart2js/js_backend_cps_ir_interceptors.dart
@@ -0,0 +1,27 @@
+// Copyright (c) 2014, 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.
+
+// Tests of interceptors.
+
+library interceptors_tests;
+
+import 'js_backend_cps_ir_test.dart';
+
+const List<TestEntry> tests = const [
+ const TestEntry("""
+main() {
+ var g = 1;
+
+ var x = g + 3;
+ print(x);
+}""",
+r"""
+function() {
+ var g, v0;
+ g = 1;
+ v0 = 3;
+ P.print(J.getInterceptor(g).$add(g, v0));
+ return null;
+}"""),
+];

Powered by Google App Engine
This is Rietveld 408576698