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

Unified Diff: test/mjsunit/compiler/osr-uint32.js

Issue 21340002: Generate a custom OSR entrypoint for OSR compiles on all platforms, and transition to optimized cod… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remerge with recent changes. Created 7 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/mjsunit/compiler/osr-uint32.js
diff --git a/test/mjsunit/regress/regress-crbug-217858.js b/test/mjsunit/compiler/osr-uint32.js
similarity index 89%
copy from test/mjsunit/regress/regress-crbug-217858.js
copy to test/mjsunit/compiler/osr-uint32.js
index e61cb9f6d24a6dcb54a81699183d2db843d0d2dc..d6fcae546cfa82dbb7a32ca7baa5b4339c86ba77 100644
--- a/test/mjsunit/regress/regress-crbug-217858.js
+++ b/test/mjsunit/compiler/osr-uint32.js
@@ -25,13 +25,15 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --noanalyze_environment_liveness
-
-var r = /r/;
-function f() {
- r[r] = function() {};
+// Loop to force OSR.
+var j = 0;
+for (var i = 0; i < 80000; i++) {
+ j++;
}
-for (var i = 0; i < 300000; i++) {
- f();
+function SarShr(val) {
+ return val >> (-2 >>> 0);
}
+
+var K3 = 0x80000000;
+assertEquals(-2, SarShr(K3 | 0));

Powered by Google App Engine
This is Rietveld 408576698