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

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

Issue 1355893003: Rewire DDC to use the analyzer task model (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix for identifiers Created 5 years, 3 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/opassign.js
diff --git a/test/codegen/expect/opassign.js b/test/codegen/expect/opassign.js
index 995466d775eeea3fc015156cef3e63a1e83aef4f..4559c971995b6793c8d2f32e1d885446c63b8c4d 100644
--- a/test/codegen/expect/opassign.js
+++ b/test/codegen/expect/opassign.js
@@ -7,7 +7,7 @@ dart_library.library('opassign', null, /* Imports */[
let dartx = dart.dartx;
dart.copyProperties(exports, {
get index() {
- core.print('called "index" getter');
+ dart.dcall(core.print, 'called "index" getter');
return 0;
}
});
@@ -18,7 +18,7 @@ dart_library.library('opassign', null, /* Imports */[
});
dart.copyProperties(exports, {
get foo() {
- core.print('called "foo" getter');
+ dart.dcall(core.print, 'called "foo" getter');
return exports._foo;
}
});
@@ -29,23 +29,23 @@ dart_library.library('opassign', null, /* Imports */[
}
function main() {
let f = dart.map([0, 40]);
- core.print('should only call "index" 2 times:');
+ dart.dcall(core.print, 'should only call "index" 2 times:');
let i = exports.index;
f.set(i, dart.dsend(f.get(i), '+', 1));
- forcePostfix((() => {
+ dart.dcall(forcePostfix, (() => {
let i = exports.index, x = f.get(i);
f.set(i, dart.dsend(x, '+', 1));
return x;
})());
- core.print('should only call "foo" 2 times:');
+ dart.dcall(core.print, 'should only call "foo" 2 times:');
let o = exports.foo;
dart.dput(o, 'x', dart.dsend(dart.dload(o, 'x'), '+', 1));
- forcePostfix((() => {
+ dart.dcall(forcePostfix, (() => {
let o = exports.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:');
+ dart.dcall(core.print, 'op assign test, should only call "index" twice:');
let i$ = exports.index;
f.set(i$, dart.dsend(f.get(i$), '+', f.get(exports.index)));
}

Powered by Google App Engine
This is Rietveld 408576698