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

Unified Diff: tests/standalone/int_array_deopt.dart

Issue 2984363004: Migrate first block of tests in standalone to standalone_2 (Closed)
Patch Set: Remove Expect.throws Created 3 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
« no previous file with comments | « tests/standalone/http_launch_test.dart ('k') | tests/standalone/int_array_load_elimination_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/int_array_deopt.dart
diff --git a/tests/standalone/int_array_deopt.dart b/tests/standalone/int_array_deopt.dart
deleted file mode 100644
index 6049a3009176993037d050f9eccdb74824629472..0000000000000000000000000000000000000000
--- a/tests/standalone/int_array_deopt.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-//
-// Dart deoptimization of Uint32Array and Int32Array loads.
-
-import 'dart:typed_data';
-
-loadI32(a) => a[0] + 1;
-loadUi32(a) => a[0] + 1;
-
-main() {
- var i32 = new Int32List(10);
- var ui32 = new Uint32List(10);
- i32[0] = ui32[0] = 8;
- // Optimize loadI32 and LoadUi32 for Smi result of indexed load.
- for (int i = 0; i < 2000; i++) {
- Expect.equals(9, loadI32(i32));
- Expect.equals(9, loadUi32(ui32));
- }
- // On ia32, deoptimize when attempting to load a value that exceeds
- // Smi range.
- i32[0] = ui32[0] = 2147483647;
- Expect.equals(2147483648, loadI32(i32));
- Expect.equals(2147483648, loadUi32(ui32));
- // Reoptimize again, but this time assume mixed Smi/Mint results
- i32[0] = ui32[0] = 10;
- for (int i = 0; i < 2000; i++) {
- Expect.equals(11, loadI32(i32));
- Expect.equals(11, loadUi32(ui32));
- }
-}
« no previous file with comments | « tests/standalone/http_launch_test.dart ('k') | tests/standalone/int_array_load_elimination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698