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

Unified Diff: tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart

Issue 12499005: dart2js: Create noSuchMethod handlers at runtime to reduce overhead. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reordered some stuff due to code review feedback Created 7 years, 9 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
Index: tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart
diff --git a/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart b/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart
index c0f03ac85d18d32e1e2fe934fc4ae4a72dd30d2c..51ebd330211c47fc99cb53fcb8d75827eb15bfa8 100644
--- a/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart
+++ b/tests/compiler/dart2js_native/native_no_such_method_exception5_frog_test.dart
@@ -2,9 +2,16 @@
// 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.
+class GetName {
+ foo(x, [y]) => "foo";
+ baz(x, y, z) => "baz";
+}
+
+static String getName(im) => im.invokeOn(new GetName());
+
class A native "*A" {
bar() => 42;
- noSuchMethod(x) => "native(${x.memberName}:${x.positionalArguments})";
+ noSuchMethod(x) => "native(${getName(x)}:${x.positionalArguments})";
}
class B native "*B" {
@@ -13,7 +20,7 @@ class B native "*B" {
class C {
static create() => new C();
- noSuchMethod(x) => "${x.memberName}:${x.positionalArguments}";
+ noSuchMethod(x) => "${getName(x)}:${x.positionalArguments}";
}
makeA() native;

Powered by Google App Engine
This is Rietveld 408576698