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

Side by Side Diff: test/codegen/expect/language/deferred_load_inval_code_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/deferred_load_inval_code_test', null, /* Imports */[
2 'dart_sdk'
3 ], function load__deferred_load_inval_code_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 deferred_load_inval_code_test = Object.create(null);
9 const deferred_load_inval_code_lib = Object.create(null);
10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
11 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
12 deferred_load_inval_code_test.loaded = false;
13 deferred_load_inval_code_test.x = 0;
14 deferred_load_inval_code_test.bla = function() {
15 if (dart.test(deferred_load_inval_code_test.loaded)) {
16 deferred_load_inval_code_lib.foo();
17 } else {
18 for (let i = 0; i < 100; i++) {
19 deferred_load_inval_code_test.x = dart.notNull(deferred_load_inval_code_ test.x) + 1;
20 }
21 }
22 };
23 dart.fn(deferred_load_inval_code_test.bla, VoidTodynamic());
24 deferred_load_inval_code_test.warmup = function() {
25 for (let i = 1; i < 1000; i++) {
26 deferred_load_inval_code_test.bla();
27 }
28 };
29 dart.fn(deferred_load_inval_code_test.warmup, VoidTodynamic());
30 deferred_load_inval_code_test.main = function() {
31 deferred_load_inval_code_test.warmup();
32 loadLibrary().then(dart.dynamic)(dart.fn(_ => {
33 deferred_load_inval_code_test.loaded = true;
34 deferred_load_inval_code_test.bla();
35 }, dynamicTodynamic()));
36 };
37 dart.fn(deferred_load_inval_code_test.main, VoidTodynamic());
38 deferred_load_inval_code_lib.foo = function() {
39 return "foo from library";
40 };
41 dart.fn(deferred_load_inval_code_lib.foo, VoidTodynamic());
42 // Exports:
43 exports.deferred_load_inval_code_test = deferred_load_inval_code_test;
44 exports.deferred_load_inval_code_lib = deferred_load_inval_code_lib;
45 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698