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

Side by Side Diff: pkg/kernel/testcases/spec-mode/unused_methods.baseline.txt

Issue 2645733004: Run tree shaking in strong-mode baseline tests. (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 class UnusedClass extends core::Object {
6 constructor •() → void
7 : super core::Object::•()
8 ;
9 }
10 abstract class UsedAsBaseClass extends core::Object {
11 constructor •() → void
12 : super core::Object::•()
13 ;
14 method usedInSubclass() → void {
15 core::print("Unused");
16 }
17 method calledFromB() → void {
18 this.calledFromSubclass();
19 }
20 method calledFromSubclass() → void {
21 core::print("Unused");
22 }
23 }
24 class UsedAsInterface extends core::Object {
25 constructor •() → void
26 : super core::Object::•()
27 ;
28 method usedInSubclass() → void {
29 core::print("Unused");
30 }
31 }
32 class InstantiatedButMethodsUnused extends core::Object {
33 constructor •() → void
34 : super core::Object::•()
35 ;
36 method usedInSubclass() → void {
37 core::print("Unused");
38 }
39 }
40 class ClassA extends self::UsedAsBaseClass implements self::UsedAsInterface, sel f::InstantiatedButMethodsUnused {
41 constructor •() → void
42 : super self::UsedAsBaseClass::•()
43 ;
44 method usedInSubclass() → void {
45 core::print("A");
46 }
47 }
48 class ClassB extends self::UsedAsBaseClass implements self::UsedAsInterface, sel f::InstantiatedButMethodsUnused {
49 constructor •() → void
50 : super self::UsedAsBaseClass::•()
51 ;
52 method usedInSubclass() → void {
53 core::print("B");
54 this.calledFromB();
55 }
56 method calledFromSubclass() → void {}
57 }
58 static method baseClassCall(self::UsedAsBaseClass object) → void {
59 object.usedInSubclass();
60 }
61 static method interfaceCall(self::UsedAsInterface object) → void {
62 object.usedInSubclass();
63 }
64 static method exactCallA(self::ClassA object) → void {
65 object.usedInSubclass();
66 }
67 static method exactCallB(self::ClassB object) → void {
68 object.usedInSubclass();
69 }
70 static method unusedTopLevel() → dynamic {
71 core::print("Unused");
72 }
73 static method usedTopLevel() → dynamic {}
74 static method main() → dynamic {
75 self::usedTopLevel();
76 self::ClassA a = new self::ClassA::•();
77 self::exactCallA(a);
78 self::baseClassCall(a);
79 self::interfaceCall(a);
80 self::ClassB b = new self::ClassB::•();
81 self::exactCallB(b);
82 self::baseClassCall(b);
83 self::interfaceCall(b);
84 new self::InstantiatedButMethodsUnused::•();
85 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/input/unused_methods.dart ('k') | pkg/kernel/testcases/strong-mode/DeltaBlue.baseline.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698