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

Side by Side Diff: test/codegen/expect/language/ct_const2_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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 dart_library.library('language/ct_const2_test', null, /* Imports */[
2 'dart_sdk'
3 ], function load__ct_const2_test(exports, dart_sdk) {
4 'use strict';
5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx;
8 const ct_const2_test = Object.create(null);
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
10 ct_const2_test.b = true;
11 ct_const2_test.s = "apple";
12 ct_const2_test.i = 1;
13 ct_const2_test.d = 3.3;
14 ct_const2_test.h = 15;
15 ct_const2_test.n = null;
16 ct_const2_test.aList = dart.constList([1, 2, 3], core.int);
17 ct_const2_test.aMap = dart.const(dart.map({"1": "one", "2": "banana"}));
18 ct_const2_test.INT_LIT = 5;
19 ct_const2_test.INT_LIT_REF = ct_const2_test.INT_LIT;
20 ct_const2_test.DOUBLE_LIT = 1.5;
21 ct_const2_test.BOOL_LIT = true;
22 ct_const2_test.STRING_LIT = "Hello";
23 ct_const2_test.BOP1_0 = ct_const2_test.INT_LIT + 1;
24 ct_const2_test.BOP1_1 = 1 + ct_const2_test.INT_LIT;
25 ct_const2_test.BOP1_2 = ct_const2_test.INT_LIT - 1;
26 ct_const2_test.BOP1_3 = 1 - ct_const2_test.INT_LIT;
27 ct_const2_test.BOP1_4 = ct_const2_test.INT_LIT * 1;
28 ct_const2_test.BOP1_5 = 1 * ct_const2_test.INT_LIT;
29 ct_const2_test.BOP1_6 = ct_const2_test.INT_LIT / 1;
30 ct_const2_test.BOP1_7 = 1 / ct_const2_test.INT_LIT;
31 ct_const2_test.BOP2_0 = ct_const2_test.DOUBLE_LIT + 1.5;
32 ct_const2_test.BOP2_1 = 1.5 + ct_const2_test.DOUBLE_LIT;
33 ct_const2_test.BOP2_2 = ct_const2_test.DOUBLE_LIT - 1.5;
34 ct_const2_test.BOP2_3 = 1.5 - ct_const2_test.DOUBLE_LIT;
35 ct_const2_test.BOP2_4 = ct_const2_test.DOUBLE_LIT * 1.5;
36 ct_const2_test.BOP2_5 = 1.5 * ct_const2_test.DOUBLE_LIT;
37 ct_const2_test.BOP2_6 = ct_const2_test.DOUBLE_LIT / 1.5;
38 ct_const2_test.BOP2_7 = 1.5 / ct_const2_test.DOUBLE_LIT;
39 ct_const2_test.BOP3_0 = 2 < ct_const2_test.INT_LIT;
40 ct_const2_test.BOP3_1 = ct_const2_test.INT_LIT < 2;
41 ct_const2_test.BOP3_2 = 2 > ct_const2_test.INT_LIT;
42 ct_const2_test.BOP3_3 = ct_const2_test.INT_LIT > 2;
43 ct_const2_test.BOP3_4 = 2 < ct_const2_test.DOUBLE_LIT;
44 ct_const2_test.BOP3_5 = ct_const2_test.DOUBLE_LIT < 2;
45 ct_const2_test.BOP3_6 = 2 > ct_const2_test.DOUBLE_LIT;
46 ct_const2_test.BOP3_7 = ct_const2_test.DOUBLE_LIT > 2;
47 ct_const2_test.BOP3_8 = 2 <= ct_const2_test.INT_LIT;
48 ct_const2_test.BOP3_9 = ct_const2_test.INT_LIT <= 2;
49 ct_const2_test.BOP3_10 = 2 >= ct_const2_test.INT_LIT;
50 ct_const2_test.BOP3_11 = ct_const2_test.INT_LIT >= 2;
51 ct_const2_test.BOP3_12 = 2.0 <= ct_const2_test.DOUBLE_LIT;
52 ct_const2_test.BOP3_13 = ct_const2_test.DOUBLE_LIT <= 2.0;
53 ct_const2_test.BOP3_14 = 2.0 >= ct_const2_test.DOUBLE_LIT;
54 ct_const2_test.BOP3_15 = ct_const2_test.DOUBLE_LIT >= 2;
55 ct_const2_test.BOP4_0 = (5)[dartx['%']](ct_const2_test.INT_LIT);
56 ct_const2_test.BOP4_1 = ct_const2_test.INT_LIT[dartx['%']](5);
57 ct_const2_test.BOP4_2 = 5.0[dartx['%']](ct_const2_test.DOUBLE_LIT);
58 ct_const2_test.BOP4_3 = ct_const2_test.DOUBLE_LIT[dartx['%']](5.0);
59 ct_const2_test.BOP5_0 = 128 & 4;
60 ct_const2_test.BOP5_1 = 128 | 4;
61 ct_const2_test.BOP5_2 = 128 << 4;
62 ct_const2_test.BOP5_3 = 128 >> 4;
63 ct_const2_test.BOP5_4 = (128 / 4)[dartx.truncate]();
64 ct_const2_test.BOP5_5 = 128 ^ 4;
65 ct_const2_test.BOP6 = ct_const2_test.BOOL_LIT && true;
66 ct_const2_test.BOP7 = false || ct_const2_test.BOOL_LIT;
67 ct_const2_test.BOP8 = ct_const2_test.STRING_LIT == "World!";
68 ct_const2_test.BOP9 = "Hello" != ct_const2_test.STRING_LIT;
69 ct_const2_test.BOP10 = ct_const2_test.INT_LIT == ct_const2_test.INT_LIT_REF;
70 ct_const2_test.BOP11 = ct_const2_test.BOOL_LIT != true;
71 ct_const2_test.BOP20 = 1 * ct_const2_test.INT_LIT / 3 + ct_const2_test.INT_LIT + 9;
72 ct_const2_test.BOP30 = 1 > 2;
73 ct_const2_test.BOP31 = 1 * 2 + 3;
74 ct_const2_test.BOP32 = 3 + 1 * 2;
75 ct_const2_test.UOP1_0 = !ct_const2_test.BOOL_LIT;
76 ct_const2_test.UOP1_1 = ct_const2_test.BOOL_LIT || !true;
77 ct_const2_test.UOP1_2 = !ct_const2_test.BOOL_LIT || true;
78 ct_const2_test.UOP1_3 = !(ct_const2_test.BOOL_LIT && true);
79 ct_const2_test.UOP2_0 = ~240 >>> 0;
80 ct_const2_test.UOP2_1 = ~ct_const2_test.INT_LIT >>> 0;
81 ct_const2_test.UOP2_2 = ~ct_const2_test.INT_LIT & 123;
82 ct_const2_test.UOP2_3 = ~(ct_const2_test.INT_LIT | 255) >>> 0;
83 ct_const2_test.UOP3_0 = -240;
84 ct_const2_test.UOP3_1 = -ct_const2_test.INT_LIT;
85 ct_const2_test.UOP3_2 = -ct_const2_test.INT_LIT + 123;
86 ct_const2_test.UOP3_3 = -(ct_const2_test.INT_LIT * 255);
87 ct_const2_test.UOP3_4 = -240;
88 ct_const2_test.UOP3_5 = -ct_const2_test.DOUBLE_LIT;
89 ct_const2_test.UOP3_6 = -ct_const2_test.DOUBLE_LIT + 123;
90 ct_const2_test.UOP3_7 = -(ct_const2_test.DOUBLE_LIT * 255);
91 ct_const2_test.A = class A extends core.Object {
92 new() {
93 }
94 };
95 dart.setSignature(ct_const2_test.A, {
96 constructors: () => ({new: dart.definiteFunctionType(ct_const2_test.A, [])})
97 });
98 dart.defineLazy(ct_const2_test.A, {
99 get a() {
100 return dart.const(new ct_const2_test.A());
101 }
102 });
103 ct_const2_test.main = function() {
104 };
105 dart.fn(ct_const2_test.main, VoidTodynamic());
106 // Exports:
107 exports.ct_const2_test = ct_const2_test;
108 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/critical_edge_test.js ('k') | test/codegen/expect/language/ct_const3_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698