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

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

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 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
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 {

Powered by Google App Engine
This is Rietveld 408576698