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

Side by Side Diff: test/codegen/expect/language/if_and_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/if_and_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__if_and_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const if_and_test = Object.create(null);
11 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons tFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic])))();
12 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
14 if_and_test._shiftRight = function(x, y) {
15 return x;
16 };
17 dart.fn(if_and_test._shiftRight, dynamicAnddynamicTodynamic());
18 if_and_test.int64_bits = function(x) {
19 return x;
20 };
21 dart.fn(if_and_test.int64_bits, dynamicTodynamic());
22 if_and_test.A = class A extends core.Object {
23 opshr(n, a2) {
24 let res2 = null;
25 let negative = dart.equals(a2, 496);
26 res2 = core.int._check(if_and_test._shiftRight(a2, n));
27 if (negative) {
28 res2 = (dart.notNull(res2) | 3) >>> 0;
29 }
30 return if_and_test.int64_bits(res2);
31 }
32 };
33 dart.setSignature(if_and_test.A, {
34 methods: () => ({opshr: dart.definiteFunctionType(dart.dynamic, [core.int, d art.dynamic])})
35 });
36 if_and_test.main = function() {
37 let a = new if_and_test.A();
38 let t = null;
39 for (let i = 0; i < 3; i++) {
40 t = a.opshr(99, 496);
41 }
42 expect$.Expect.equals(499, t);
43 };
44 dart.fn(if_and_test.main, VoidTodynamic());
45 // Exports:
46 exports.if_and_test = if_and_test;
47 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698