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

Unified Diff: test/mjsunit/compare-constants.js

Issue 28066: Experimental: fix two issues with ARM fast (jump table) switches.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 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
« src/codegen-arm.cc ('K') | « src/codegen-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compare-constants.js
===================================================================
--- test/mjsunit/compare-constants.js (revision 1339)
+++ test/mjsunit/compare-constants.js (working copy)
@@ -25,13 +25,12 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Test comparison operations that involve one or two constant Smis.
+// Test comparison operations that involve one or two constant smis.
-
-function foo() {
+function test() {
var i = 5;
var j = 3;
-
+
assertTrue( j < i );
i = 5; j = 3;
assertTrue( j <= i );
@@ -61,8 +60,7 @@
++i;
}
j = 21;
-
-
+
assertTrue( j < i );
j = 21;
assertTrue( j <= i );
@@ -116,8 +114,8 @@
assertUnreachable();
break;
}
- assertEquals(17, j, "switch with constant value");
+ assertEquals(17, j, "switch with constant value");
}
-foo();
+test();
« src/codegen-arm.cc ('K') | « src/codegen-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698