Index: tests/compiler/dart2js_native/native_method_inlining_test.dart |
diff --git a/tests/compiler/dart2js_native/native_method_inlining_test.dart b/tests/compiler/dart2js_native/native_method_inlining_test.dart |
index a3aee2cb500dc96360b8197673ba8a6630c55c21..dce81ec48ecfb713012fa6193a67898265122ce0 100644 |
--- a/tests/compiler/dart2js_native/native_method_inlining_test.dart |
+++ b/tests/compiler/dart2js_native/native_method_inlining_test.dart |
@@ -12,17 +12,17 @@ typedef int Int2Int(int x); |
@Native("A") |
class A { |
- int foo([x, y, z]) native; |
+ int foo([x, y, z]) native ; |
// Calls can be inlined provided they don't pass an argument. |
- int callFun([Int2Int fn]) native; |
+ int callFun([Int2Int fn]) native ; |
} |
class B { |
static var g; |
@NoInline() |
method1(a) { |
- g = '(Method1Tag)'; // Tag to identify compiled JavaScript method. |
+ g = '(Method1Tag)'; // Tag to identify compiled JavaScript method. |
A x = makeA(); |
// Call sites that are searched for in compiled JavaScript. |
x.foo(); |
@@ -30,27 +30,29 @@ class B { |
x.foo(2, 10); |
return x.foo(3, 10, 30); |
} |
+ |
@NoInline() |
method2() { |
g = '(Method2Tag)'; |
A x = makeA(); |
- var r1 = x.callFun(); // Can be inlined. |
+ var r1 = x.callFun(); // Can be inlined. |
var r2 = x.callFun(); |
return r1 + r2; |
} |
+ |
@NoInline() |
method3() { |
g = '(Method3Tag)'; |
A x = makeA(); |
- var r1 = x.callFun((x) => x * 2); // Can't be inlined due to conversion. |
+ var r1 = x.callFun((x) => x * 2); // Can't be inlined due to conversion. |
var r2 = x.callFun((x) => x * 0); |
return r1 + r2; |
} |
} |
-A makeA() native; |
+A makeA() native ; |
-String findMethodTextContaining(instance, string) native; |
+String findMethodTextContaining(instance, string) native ; |
void setup() native r""" |
function A() {} |
@@ -71,7 +73,6 @@ findMethodTextContaining = function (instance, string) { |
}; |
"""; |
- |
bool get isCheckedMode { |
int i = 0; |
try { |