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

Unified Diff: test/codegen/expect/language/execute_finally3_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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/language/execute_finally3_test.js
diff --git a/test/codegen/expect/language/execute_finally3_test.js b/test/codegen/expect/language/execute_finally3_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..dc9ba084d2dc441302ced83b10ea135d8aab5fcf
--- /dev/null
+++ b/test/codegen/expect/language/execute_finally3_test.js
@@ -0,0 +1,86 @@
+dart_library.library('language/execute_finally3_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__execute_finally3_test(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const execute_finally3_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ execute_finally3_test.Helper = class Helper extends core.Object {
+ new() {
+ this.i = 0;
+ }
+ f1() {
+ try {
+ try {
+ let j = null;
+ j = execute_finally3_test.Helper.func();
+ L1:
+ while (dart.notNull(this.i) <= 0) {
+ if (this.i == 0) {
+ try {
+ this.i = 1;
+ execute_finally3_test.Helper.func();
+ try {
+ let j = null;
+ j = execute_finally3_test.Helper.func();
+ while (dart.notNull(j) < 50) {
+ j = dart.notNull(j) + dart.notNull(execute_finally3_test.Helper.func());
+ if (dart.notNull(j) > 30) {
+ continue L1;
+ }
+ }
+ this.i = 200000;
+ } finally {
+ this.i = dart.notNull(this.i) + 200;
+ }
+ } finally {
+ this.i = dart.notNull(this.i) + 400;
+ }
+ }
+ }
+ } finally {
+ this.i = dart.notNull(this.i) + 800;
+ }
+ return this.i;
+ } finally {
+ this.i = dart.notNull(this.i) + 1600;
+ }
+ this.i = dart.notNull(this.i) + 2000000;
+ return 1;
+ }
+ static func() {
+ let i = 0;
+ while (i < 10) {
+ i++;
+ }
+ return i;
+ }
+ };
+ dart.setSignature(execute_finally3_test.Helper, {
+ constructors: () => ({new: dart.definiteFunctionType(execute_finally3_test.Helper, [])}),
+ methods: () => ({f1: dart.definiteFunctionType(core.int, [])}),
+ statics: () => ({func: dart.definiteFunctionType(core.int, [])}),
+ names: ['func']
+ });
+ execute_finally3_test.ExecuteFinally3Test = class ExecuteFinally3Test extends core.Object {
+ static testMain() {
+ let obj = new execute_finally3_test.Helper();
+ expect$.Expect.equals(1401, obj.f1());
+ expect$.Expect.equals(3001, obj.i);
+ }
+ };
+ dart.setSignature(execute_finally3_test.ExecuteFinally3Test, {
+ statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
+ names: ['testMain']
+ });
+ execute_finally3_test.main = function() {
+ execute_finally3_test.ExecuteFinally3Test.testMain();
+ };
+ dart.fn(execute_finally3_test.main, VoidTodynamic());
+ // Exports:
+ exports.execute_finally3_test = execute_finally3_test;
+});
« no previous file with comments | « test/codegen/expect/language/execute_finally2_test.js ('k') | test/codegen/expect/language/execute_finally4_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698