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

Side by Side Diff: test/cctest/test-assembler-arm.cc

Issue 1223093004: [arm] Fix missing CheckBuffer for branches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 double inf = std::numeric_limits<double>::infinity(); 1974 double inf = std::numeric_limits<double>::infinity();
1975 CHECK_VRINT(inf, inf, inf, inf, inf, inf) 1975 CHECK_VRINT(inf, inf, inf, inf, inf, inf)
1976 CHECK_VRINT(-inf, -inf, -inf, -inf, -inf, -inf) 1976 CHECK_VRINT(-inf, -inf, -inf, -inf, -inf, -inf)
1977 CHECK_VRINT(-0.0, -0.0, -0.0, -0.0, -0.0, -0.0) 1977 CHECK_VRINT(-0.0, -0.0, -0.0, -0.0, -0.0, -0.0)
1978 double nan = std::numeric_limits<double>::quiet_NaN(); 1978 double nan = std::numeric_limits<double>::quiet_NaN();
1979 CHECK_VRINT(nan, nan, nan, nan, nan, nan) 1979 CHECK_VRINT(nan, nan, nan, nan, nan, nan)
1980 1980
1981 #undef CHECK_VRINT 1981 #undef CHECK_VRINT
1982 } 1982 }
1983 } 1983 }
1984
1985
1986 TEST(regress4292_b) {
1987 CcTest::InitializeVM();
1988 Isolate* isolate = CcTest::i_isolate();
1989 HandleScope scope(isolate);
1990
1991 Assembler assm(isolate, NULL, 0);
1992 Label end;
1993 __ mov(r0, Operand(isolate->factory()->infinity_value()));
1994 for (int i = 0; i < 1020; ++i) {
1995 __ b(hi, &end);
1996 }
1997 __ bind(&end);
1998 }
1999
2000
2001 TEST(regress4292_bl) {
2002 CcTest::InitializeVM();
2003 Isolate* isolate = CcTest::i_isolate();
2004 HandleScope scope(isolate);
2005
2006 Assembler assm(isolate, NULL, 0);
2007 Label end;
2008 __ mov(r0, Operand(isolate->factory()->infinity_value()));
2009 for (int i = 0; i < 1020; ++i) {
2010 __ bl(hi, &end);
2011 }
2012 __ bind(&end);
2013 }
2014
2015
2016 TEST(regress4292_blx) {
2017 CcTest::InitializeVM();
2018 Isolate* isolate = CcTest::i_isolate();
2019 HandleScope scope(isolate);
2020
2021 Assembler assm(isolate, NULL, 0);
2022 Label end;
2023 __ mov(r0, Operand(isolate->factory()->infinity_value()));
2024 for (int i = 0; i < 1020; ++i) {
2025 __ blx(&end);
2026 }
2027 __ bind(&end);
2028 }
2029
1984 #undef __ 2030 #undef __
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698