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

Unified Diff: test/dart_codegen/expect/math/jenkins_smi_hash.dart

Issue 963593002: Disable formatting and add new-lines to make tests faster. (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
Index: test/dart_codegen/expect/math/jenkins_smi_hash.dart
diff --git a/test/dart_codegen/expect/math/jenkins_smi_hash.dart b/test/dart_codegen/expect/math/jenkins_smi_hash.dart
index ac1aa3a7b9827f232ec9fc7b2201d6072c5524b0..297c265690bdfd0e881bd9bc534a5997ca71a9e4 100644
--- a/test/dart_codegen/expect/math/jenkins_smi_hash.dart
+++ b/test/dart_codegen/expect/math/jenkins_smi_hash.dart
@@ -1,30 +1,14 @@
part of dart.math;
-
-class _JenkinsSmiHash {
- static int combine(int hash, int value) {
- hash = 0x1fffffff & (hash + value);
- hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
- return hash ^ (hash >> 6);
+ class _JenkinsSmiHash {static int combine(int hash, int value) {
+ hash = 0x1fffffff & (hash + value);
+ hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
+ return hash ^ (hash >> 6);
}
- static int finish(int hash) {
- hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
- hash = hash ^ (hash >> 11);
- return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
+ static int finish(int hash) {
+ hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
+ hash = hash ^ (hash >> 11);
+ return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
}
- static int hash2(a, b) => finish(combine(combine(0, DDC$RT.cast(a, dynamic,
- int, "CastGeneral",
- """line 37, column 55 of dart:math/jenkins_smi_hash.dart: """,
- a is int, true)), DDC$RT.cast(b, dynamic, int, "CastGeneral",
- """line 37, column 59 of dart:math/jenkins_smi_hash.dart: """, b is int,
- true)));
- static int hash4(a, b, c, d) => finish(combine(combine(combine(combine(0,
- DDC$RT.cast(a, dynamic, int, "CastGeneral",
- """line 40, column 49 of dart:math/jenkins_smi_hash.dart: """,
- a is int, true)), DDC$RT.cast(b, dynamic, int, "CastGeneral",
- """line 40, column 53 of dart:math/jenkins_smi_hash.dart: """,
- b is int, true)), DDC$RT.cast(c, dynamic, int, "CastGeneral",
- """line 40, column 57 of dart:math/jenkins_smi_hash.dart: """,
- c is int, true)), DDC$RT.cast(d, dynamic, int, "CastGeneral",
- """line 40, column 61 of dart:math/jenkins_smi_hash.dart: """, d is int,
- true)));
+ static int hash2(a, b) => finish(combine(combine(0, DDC$RT.cast(a, dynamic, int, "CastGeneral", """line 37, column 55 of dart:math/jenkins_smi_hash.dart: """, a is int, true)), DDC$RT.cast(b, dynamic, int, "CastGeneral", """line 37, column 59 of dart:math/jenkins_smi_hash.dart: """, b is int, true)));
+ static int hash4(a, b, c, d) => finish(combine(combine(combine(combine(0, DDC$RT.cast(a, dynamic, int, "CastGeneral", """line 40, column 49 of dart:math/jenkins_smi_hash.dart: """, a is int, true)), DDC$RT.cast(b, dynamic, int, "CastGeneral", """line 40, column 53 of dart:math/jenkins_smi_hash.dart: """, b is int, true)), DDC$RT.cast(c, dynamic, int, "CastGeneral", """line 40, column 57 of dart:math/jenkins_smi_hash.dart: """, c is int, true)), DDC$RT.cast(d, dynamic, int, "CastGeneral", """line 40, column 61 of dart:math/jenkins_smi_hash.dart: """, d is int, true)));
}

Powered by Google App Engine
This is Rietveld 408576698