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

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

Issue 861093002: Support intercepted getters, setters and index operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Only reject instance members that need interceptors and disable a test that we do not support yet. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart
index 048beec21ff68532009888c6fd1061090ed5a0f4..4ad6e78a1409d7b3350d80d5fe21b8d8b4c50ac4 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart
@@ -26,32 +26,34 @@ r"""
function(x) {
var v0, v1;
v0 = 10;
- v1 = J.getInterceptor(x).$add(x, v0);
+ v1 = J.getInterceptor$ns(x).$add(x, v0);
return V.Base.prototype.m$1.call(this, v1);
}"""),
-const TestEntry.forMethod('function(Sub#+)', """
-class Base {
- m(x) {
- print(x+1000);
- }
- operator+(x) => m(x+10);
-}
-class Sub extends Base {
- m(x) => super.m(x+100);
- operator+(x) => super + (x+1);
-}
-main() {
- new Sub() + 10000;
-}""",
-r"""
-function(x) {
- var v0, v1, v2;
- v0 = 1;
- v1 = J.getInterceptor(x).$add(x, v0);
- v2 = this;
- return V.Base.prototype.$add.call(null, v2, v1);
-}"""),
+ // Reenable when we support compiling functions that
+ // need interceptor calling convention.
+// const TestEntry.forMethod('function(Sub#+)', """
+// class Base {
+// m(x) {
+// print(x+1000);
+// }
+// operator+(x) => m(x+10);
+// }
+// class Sub extends Base {
+// m(x) => super.m(x+100);
+// operator+(x) => super + (x+1);
+// }
+// main() {
+// new Sub() + 10000;
+// }""",
+// r"""
+// function(x) {
+// var v0, v1, v2;
+// v0 = 1;
+// v1 = J.getInterceptor$ns(x).$add(x, v0);
+// v2 = this;
+// return V.Base.prototype.$add.call(null, v2, v1);
+// }"""),
const TestEntry.forMethod('function(Sub#m)', """
class Base {
@@ -67,7 +69,7 @@ r"""
function(x) {
var v0;
v0 = this.field;
- return J.getInterceptor(x).$add(x, v0);
+ return J.getInterceptor$ns(x).$add(x, v0);
}"""),
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698