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

Unified Diff: test/dart_codegen/expect/core/stopwatch.dart

Issue 961493003: don't run dart gen on JS patch code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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/dart_codegen/expect/core/regexp.dart ('k') | test/dart_codegen/expect/core/string.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/stopwatch.dart
diff --git a/test/dart_codegen/expect/core/stopwatch.dart b/test/dart_codegen/expect/core/stopwatch.dart
index eb4b0f606ed9c197d8bad2177d8d905cc21d2875..c30e6506054537d4af981904db8533bcddbeb574 100644
--- a/test/dart_codegen/expect/core/stopwatch.dart
+++ b/test/dart_codegen/expect/core/stopwatch.dart
@@ -31,8 +31,8 @@ class Stopwatch {
if (_start == null) {
return 0;
}
- return ((__x34) => DDC$RT.cast(__x34, num, int, "CastGeneral",
- """line 102, column 12 of dart:core/stopwatch.dart: """, __x34 is int,
+ return ((__x8) => DDC$RT.cast(__x8, num, int, "CastGeneral",
+ """line 102, column 12 of dart:core/stopwatch.dart: """, __x8 is int,
true))((_stop == null) ? (_now() - _start) : (_stop - _start));
}
Duration get elapsed {
@@ -46,13 +46,6 @@ class Stopwatch {
}
bool get isRunning => _start != null && _stop == null;
static int _frequency;
- static void _initTicker() {
- Primitives.initTicker();
- _frequency = DDC$RT.cast(Primitives.timerFrequency, dynamic, int,
- "CastGeneral", """line 143, column 18 of dart:core/stopwatch.dart: """,
- Primitives.timerFrequency is int, true);
- }
- static int _now() => ((__x35) => DDC$RT.cast(__x35, dynamic, int,
- "CastGeneral", """line 145, column 24 of dart:core/stopwatch.dart: """,
- __x35 is int, true))(Primitives.timerTicks());
+ external static void _initTicker();
+ external static int _now();
}
« no previous file with comments | « test/dart_codegen/expect/core/regexp.dart ('k') | test/dart_codegen/expect/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698