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

Unified Diff: test/codegen/expect/opassign.js

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. Created 4 years, 7 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
« no previous file with comments | « test/codegen/expect/notnull.txt ('k') | test/codegen/expect/opassign.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/opassign.js
diff --git a/test/codegen/expect/opassign.js b/test/codegen/expect/opassign.js
deleted file mode 100644
index 0c8481424b4e9025103a705ad260d1980bd6dc51..0000000000000000000000000000000000000000
--- a/test/codegen/expect/opassign.js
+++ /dev/null
@@ -1,59 +0,0 @@
-dart_library.library('opassign', null, /* Imports */[
- 'dart_sdk'
-], function(exports, dart_sdk) {
- 'use strict';
- const core = dart_sdk.core;
- const dart = dart_sdk.dart;
- const dartx = dart_sdk.dartx;
- const opassign = Object.create(null);
- dart.copyProperties(opassign, {
- get index() {
- core.print('called "index" getter');
- return 0;
- }
- });
- dart.defineLazy(opassign, {
- get _foo() {
- return new opassign.Foo();
- }
- });
- dart.copyProperties(opassign, {
- get foo() {
- core.print('called "foo" getter');
- return opassign._foo;
- }
- });
- opassign.Foo = class Foo extends core.Object {
- new() {
- this.x = 100;
- }
- };
- opassign.main = function() {
- let f = dart.map([0, 40]);
- core.print('should only call "index" 2 times:');
- let i = dart.as(opassign.index, core.int);
- f[dartx.set](i, dart.notNull(f[dartx.get](i)) + 1);
- opassign.forcePostfix((() => {
- let i = dart.as(opassign.index, core.int), x = f[dartx.get](i);
- f[dartx.set](i, dart.notNull(x) + 1);
- return x;
- })());
- core.print('should only call "foo" 2 times:');
- let o = opassign.foo;
- dart.dput(o, 'x', dart.dsend(dart.dload(o, 'x'), '+', 1));
- opassign.forcePostfix((() => {
- let o = opassign.foo, x = dart.dload(o, 'x');
- dart.dput(o, 'x', dart.dsend(x, '+', 1));
- return x;
- })());
- core.print('op assign test, should only call "index" twice:');
- let i$ = dart.as(opassign.index, core.int);
- f[dartx.set](i$, dart.notNull(f[dartx.get](i$)) + dart.notNull(f[dartx.get](opassign.index)));
- };
- dart.fn(opassign.main);
- opassign.forcePostfix = function(x) {
- };
- dart.fn(opassign.forcePostfix);
- // Exports:
- exports.opassign = opassign;
-});
« no previous file with comments | « test/codegen/expect/notnull.txt ('k') | test/codegen/expect/opassign.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698